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
gRPC Http-Json transcoding throws 500 when supported serialization format does not include JSON. #5176
Comments
I think adding validation in |
I think What are your thoughts? |
Although it can be a somewhat breaking change, I don't think this is very hard to migrate and throwing an exception is clearer. I still prefer throwing an exception, but any other thoughts are welcome. @trustin @minwoox @ikhoon |
Agreed. Since it is a kind of defect, it is a bug patch and not a breaking change. |
When I enable transcoding it Http and use it such as,
it returns
With little to no information. Taking a closer look, I realized in the debugger my content type was updated as
application/grpc+json
without asking me. Even though I usedContent-type: application/json
in my curl request. Such asThus underlying issue became:
The solution was to add
And it was really tough for us to debug this. I think the response should be something more obvious , if not possible at least we should warn users during startup that transcoding won't work.
I still don't fully understand how my content-type header changed magically under the hood.
The text was updated successfully, but these errors were encountered: