We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I think error response 415 should be improved.
{ "detail": "Invalid Content-type (text/html), expected JSON data", "status": 415, "title": "Unsupported Media Type", "type": "about:blank" }
{ "detail": null, "status": 415, "title": "Invalid Content-type (text/html), expected JSON data", "type": "about:blank" }
set 'Content-Type': 'text/html' in request header.
Output of the commands:
python --version
pip show connexion | grep "^Version\:"
Great package by-the-way!!
The text was updated successfully, but these errors were encountered:
Fixed by #1185
Sorry, something went wrong.
No branches or pull requests
Description
I think error response 415 should be improved.
Expected behaviour
{
"detail": "Invalid Content-type (text/html), expected JSON data",
"status": 415,
"title": "Unsupported Media Type",
"type": "about:blank"
}
Actual behaviour
{
"detail": null,
"status": 415,
"title": "Invalid Content-type (text/html), expected JSON data",
"type": "about:blank"
}
Steps to reproduce
set 'Content-Type': 'text/html' in request header.
Additional info:
Output of the commands:
python --version
Python 3.7.5
pip show connexion | grep "^Version\:"
Version: 2.6.0
Great package by-the-way!!
The text was updated successfully, but these errors were encountered: