Replies: 2 comments 1 reply
-
Hi, @downdawn I checked the problem, I put the data validation exception handling in the global exception detection and based on the jump, I found that they both start at Exception and I thought they would work, but it seems to be nested deeper and not detecting the source of the pydantic exception Solution, separate data validation exception handling and put it before Exception |
Beta Was this translation helpful? Give feedback.
0 replies
-
Also made some changes to the login interface return content |
Beta Was this translation helpful? Give feedback.
1 reply
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Hi, @wu-clan
Ideally, any errors return a uniform format:
But, if no parameters are passed during login, an error will be reported:
It doesn't seem to go through all_exception_handler, pydantic custom errors are too cumbersome
The interface is originally a get method, but uses the post method
Beta Was this translation helpful? Give feedback.
All reactions