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

Posted May 28, 20201 min read

Question

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"}

image.png
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.
image.png

image.png

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

image.png

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