fix: ensure bytes cannot go negative on requests sent to the server#300
Merged
Conversation
This can happen if the server sends a message that goes over the byte limit, which should never happen, but apparently does in edge cases. This ensures that the client doesn't fail if this happens. fixes: #294
hannahrogers-google
approved these changes
Feb 17, 2022
gcf-merge-on-green Bot
pushed a commit
that referenced
this pull request
Feb 18, 2022
🤖 I have created a release *beep* *boop* --- ## [1.4.0](v1.3.0...v1.4.0) (2022-02-18) ### Features * add api key support ([#291](#291)) ([f0d65ca](f0d65ca)) ### Bug Fixes * ensure bytes cannot go negative on requests sent to the server ([#300](#300)) ([6d3690a](6d3690a)), closes [#294](#294) * ensure that _failure_task exception is always retrieved ([#301](#301)) ([579abf3](579abf3)) * resolve DuplicateCredentialArgs error when using credentials_file ([b7ed9ad](b7ed9ad)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This can happen if the server sends a message that goes over the byte limit, which should never happen, but apparently does in edge cases. This ensures that the client doesn't fail if this happens.
fixes: #294