-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Grape should log a warning when the formatter returns a 406 for an unsupported content type. #322
Comments
Including the requested format and media type along in the body of the error. Let me know if this works. |
This returns 'txt' even when format is 'xml' for example. |
@leods92 It wouldn't be. Error formats can be controlled separately though. Build a repro case? |
@dblock |
It does sound strange, some code that determines the format should settle on XML in this case, open another issue with maybe a spec? |
Right now when an unsupported content type is passed as the request.media_type grape returns a 406.
I would be great if the media_type was logged along with the 406 status because when this happens in error it is really hard to debug.
The text was updated successfully, but these errors were encountered: