-
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
Pub/sub: '504 Deadline Exceeded' response from 'SubscriberClient.pull' #9390
Comments
@TetsutaroWatanabe Thanks for the report. Your example doesn't show actually publishing any messages to the topic, which means that the |
@tseaver Thank you for reply. If yes, 504 error is misunderstanding because the expression of 504 in document is follows
https://cloud.google.com/pubsub/docs/reference/error-codes I misunderstood that 504 error was caused by the network issue. |
@TetsutaroWatanabe I believe that the 504 is reproducible, although its semantics should be transient. |
@tseaver I have just experienced the same issue. Trying to pull one message. If there is no new messages 504 is thrown instead of the expected empty result. |
Per the docs for the |
The docs for the
Our generated In the (default) case that @anguillanneuf can you find out from the backend team what that expected time should be? |
Strangely, this issue no longer occurs. It cannot be reproduced any more. I close this issue. thank you. |
I suspect this is related to 31e96ae decreasing the value of Here's the code snippet that was triggering 504 errors:
Adding |
Yeah, I'm still getting this error when my sub has no messages. Anything under 20 seconds would raise DeadlineExceeded |
We've started encountering "504 Deadline Exceeded" failures intermittently after switching to synchronous pulls at the suggestion of GCP support. Since I saw this in production today using the latest releases of this library and also judging by the number of 👍 on the above comment, this issue should be re-opened. It's the #1 search result for "504 deadline exceeded" (for me at least).
|
@carnesen |
google-cloud-pubsub 1.0.0 return 504 Deadline Exceeded.
When I downgrade version to 0.45.0, then the error does not appear.
Environment details
Python 3.7.2
google-cloud-pubsub version 1.0.0
pubsub subscription
follow packages are installed together.
Steps to reproduce
Run follow script.
Stack trace
The text was updated successfully, but these errors were encountered: