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
When an Internal Server Error occurs, the response should still a valid error JSON. Now, the response is an HTML document:
<html><head><title>Internal Server Error</title></head><body><h1><p>Internal Server Error</p></h1></body></html>
The error should be in the same format that Connexion emits on failure. Content-Type is application/problem+json and it looks like this:
{
"detail": "You don't have the permission to access the requested resource. It is either read-protected or not readable by the server.",
"status": 403,
"title": "Forbidden",
"type": "about:blank"
}
I expect that this can be fixed by setting up a Flask error handler. It might be even possible to use the Connexion’s error handler instead of just mimicking its format.
The text was updated successfully, but these errors were encountered:
When an Internal Server Error occurs, the response should still a valid error JSON. Now, the response is an HTML document:
The error should be in the same format that Connexion emits on failure. Content-Type is application/problem+json and it looks like this:
I expect that this can be fixed by setting up a Flask error handler. It might be even possible to use the Connexion’s error handler instead of just mimicking its format.
The text was updated successfully, but these errors were encountered: