-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Subscription.pull() fails with KeyError #899
Labels
api: pubsub
Issues related to the Pub/Sub API.
Comments
Indeed it does! Thanks @campoy for filing. I'm wondering how to reproduce a response without that key, but an easy "fix" (for us) is to just use response.get('receivedMessages', ()) |
FWIW: this is the hardening I mentioned in #893. |
tseaver
added a commit
that referenced
this issue
May 29, 2015
…receivedMessages #899: Harden 'Subscription.pull' against missing 'receivedMessages' in response
gcf-owl-bot bot
added a commit
that referenced
this issue
Apr 30, 2024
Source-Link: googleapis/googleapis@55499b5 Source-Link: googleapis/googleapis-gen@cf5049b Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbXB1dGUvLk93bEJvdC55YW1sIiwiaCI6ImNmNTA0OWI3MDc5MjgyMDA2NWRiMzhlNzEyN2YzMmVhYjc3MDU5NDQifQ==
1 task
parthea
added a commit
that referenced
this issue
May 11, 2024
…240430 (#900) (#12648) - [ ] Regenerate this pull request now. Source-Link: googleapis/googleapis@3820562 Source-Link: googleapis/googleapis-gen@a2cd2c3 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbXB1dGUvLk93bEJvdC55YW1sIiwiaCI6ImEyY2QyYzNiYWNiZjlhZWNmN2RkMWY4ODQ1MGE2YTE0NTdlMjQzOGEifQ== BEGIN_NESTED_COMMIT feat: [google-cloud-compute] Update Compute Engine API to revision 20240421 (#899) Source-Link: googleapis/googleapis@55499b5 Source-Link: googleapis/googleapis-gen@cf5049b Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbXB1dGUvLk93bEJvdC55YW1sIiwiaCI6ImNmNTA0OWI3MDc5MjgyMDA2NWRiMzhlNzEyN2YzMmVhYjc3MDU5NDQifQ== END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: [google-cloud-compute] Update Compute Engine API to revision 20240407 (#890) Source-Link: googleapis/googleapis@018c0e3 Source-Link: googleapis/googleapis-gen@dad8476 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbXB1dGUvLk93bEJvdC55YW1sIiwiaCI6ImRhZDg0NzZjOTRlYjFlY2IyZmQ3MmYyOTY4MjVlOTYyMWVhOGI0NWQifQ== END_NESTED_COMMIT --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
My code below fails with a KeyError coming from the library:
Fails with the message:
This seems like a bug on the pubsub library code.
The text was updated successfully, but these errors were encountered: