Skip to content
New issue

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

improve 415 error response #1181

Closed
HansBouwmeester opened this issue Mar 16, 2020 · 1 comment
Closed

improve 415 error response #1181

HansBouwmeester opened this issue Mar 16, 2020 · 1 comment

Comments

@HansBouwmeester
Copy link

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!!

@Ruwann
Copy link
Member

Ruwann commented Nov 5, 2021

Fixed by #1185

@Ruwann Ruwann closed this as completed Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants