-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
api: pubsubIssues related to the Pub/Sub API.Issues related to the Pub/Sub API.
Description
Sporadic regression failure:
======================================================================
ERROR: test_message_pull_mode_e2e (pubsub.TestPubsub)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/travis/build/GoogleCloudPlatform/gcloud-python/regression/pubsub.py", line 123, in test_message_pull_mode_e2e
received = subscription.pull(max_messages=2)
File "/home/travis/build/GoogleCloudPlatform/gcloud-python/.tox/regression3/lib/python3.4/site-packages/gcloud/pubsub/subscription.py", line 191, in pull
for info in response['receivedMessages']]
KeyError: 'receivedMessages'AFAICT, this is actually a back-end bug -- we are passing the returnImmediately flag through correctly. @tmatsuo can you report it to the pubsub back-end team?
However, we should harden against the missing key in the response, for the case when returnImmediately is True, and there are no messages.
Metadata
Metadata
Assignees
Labels
api: pubsubIssues related to the Pub/Sub API.Issues related to the Pub/Sub API.