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

Unable to override client content-type #60

Open
dbhobbs opened this issue Nov 9, 2021 · 3 comments
Open

Unable to override client content-type #60

dbhobbs opened this issue Nov 9, 2021 · 3 comments

Comments

@dbhobbs
Copy link

dbhobbs commented Nov 9, 2021

I'm attempting to use the gRPC API for Google Cloud PubSub but I continue to receive a 404 http_error. I think this is similar to this issue in the elixir-grpc library. The *.googleapis.com services expect a Content-Type of application/grpc and anything else results in a 404 Not Found.

I've tried setting the content-type in the metadata via an interceptor, but I believe it's being overridden by the default provided here.

@tsloughter
Copy link
Owner

Can ask google support or someone at google? That would mean Google is not following their own spec :) I wouldn't doubt it to be the case, but would expect them to fix it.

@tsloughter
Copy link
Owner

But it would be acceptable to have the user supplied metadata take precedence over those static headers if you can send a PR.

@dbhobbs
Copy link
Author

dbhobbs commented Nov 10, 2021

Just confirmed that dropping the +proto solved the 404 http_error. It is quite silly and frustrating that it works like this, but alas, I'll work on getting a PR put together that allows user supplied metadata to override defaults.

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