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

Warn instead of failing when constructing metadata from remote end #962

Merged
merged 1 commit into from
Jul 11, 2019

Conversation

murgatroid99
Copy link
Member

I want to preserve the invariant that any Metadata object is always a valid set of gRPC metadata. googleapis/nodejs-datastore#415 indicates that we need to handle the case where the http2 module invalidly mangles the headers. We should try to do as much as possible, but erroring out when something goes wrong is probably to onerous for our users. So, we emit a warning and omit the problematic metadata entry from the resulting metadata object.

The added export is completely separate. VSCode complained about it not being there.

@murgatroid99 murgatroid99 merged commit a456547 into grpc:master Jul 11, 2019
alexander-fenster added a commit to googleapis/gax-nodejs that referenced this pull request Jul 12, 2019
This fix includes grpc/grpc-node#962 which is a work around for a bad metadata keys problem that many customer see across several libraries (googleapis/nodejs-datastore#415, googleapis/nodejs-logging#527, googleapis/nodejs-pubsub#667 are just a few).
JustinBeckwith pushed a commit to googleapis/gax-nodejs that referenced this pull request Jul 12, 2019
This fix includes grpc/grpc-node#962 which is a work around for a bad metadata keys problem that many customer see across several libraries (googleapis/nodejs-datastore#415, googleapis/nodejs-logging#527, googleapis/nodejs-pubsub#667 are just a few).
@lock lock bot locked as resolved and limited conversation to collaborators Oct 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants