You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect that ProblemExceptions raised by request validation can be handled by the server, so a 400 error can be returned to the client when an incorrectly formatted HTTP request is received for example.
Actual behaviour
ProblemExceptions raised are not handled, and therefore a 500 error is returned to the client when a badly formatted HTTP request is made.
Steps to reproduce
Define GET request in Swagger spec, for example GET /accounts
Description
I am trying to figure out how to add an exception handling method to Connexion when using the aiohttp web server. The docs at https://connexion.readthedocs.io/en/latest/exceptions.html#default-exception-handling talk of
add_error_handler
, but it seems this is only available for Flask?Expected behaviour
I expect that ProblemExceptions raised by request validation can be handled by the server, so a 400 error can be returned to the client when an incorrectly formatted HTTP request is received for example.
Actual behaviour
ProblemExceptions raised are not handled, and therefore a 500 error is returned to the client when a badly formatted HTTP request is made.
Steps to reproduce
GET /accounts?someUnexpectedArg=1
Additional info:
Python version 3.7.1
Connexion version 2.0.2
The text was updated successfully, but these errors were encountered: