The response I encountered today is not a standard error {error: & quot; Zero length string & quot;}

Posted May 28, 20201 min read


The request response only returns the following result, because the global exception handling is done in the project, which is very strange

{error:"Zero length string"}

It can be speculated from the error message that it is a string conversion error, but unfortunately the error of the corresponding interface cannot be found in the background log.


Other interfaces also have this error, which is ultimately located as an error in parsing the token to obtain the userid


Why do some interfaces not print errors in the log?
This should be the log that does not configure the return result class in the log configuration file

Related Posts