Repository navigation
Pub/Sub Deadline Exceeded #2230
Description
Activity
@jmuk @lukesneeringer this happened since we switched to GAX. Is there a better default timeout or similar value GAX should set?
EDIT: Ignore this! I was mixing Pub/Sub with Logging. We haven't switched to GAX yet.
- addedapi: pubsubIssues related to the Pub/Sub API.Issues related to the Pub/Sub API.
on Apr 18, 2017 dennismartensson commented
on Apr 18, 2017 ContributorAuthorMore actionsIs this a timeout you need to set our can we do some thing to mitigate away from it? Is it in some way created by our strategy to bundle up messages? or is that a good strategy?
I'm sorry, I misspoke above. We currently don't use the google-gax transport layer, but we intend to soon. That would mean that each API call would allow you to customize the timeout and other low-level settings.
For now, the only way to do this would require a change to our code, allowing a
timeoutoption. We actually just had this come up forack()in #2042. Would you be open to send a PR with basically the same code, just in thepublish()method? No worries if not, we will get to it eventually.dennismartensson commented
on Apr 18, 2017 ContributorAuthorMore actionsThere is now a PR for this in #2232
- addedpriority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.
on Apr 19, 2017 - removedpriority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.
on Apr 20, 2017 This has been released in @google-cloud/[email protected] and [email protected].
I am also seeing the same error without much traffic.
Reacted by timothyliu, simonhukin, Branton Davis, Morgan Bickle, Anton Moon, Nitin Dolli, Bongani Sibanda, Alex and DmitryReacted by Shaun

Environment details
Steps to reproduce
We are publishing messages on a number of topics, We hade memory leak problems if calling publish every time we got a message with would put it at around 1000 times per second. So we implemented a batching where we publish 225 messages in every batch. Is do solve the memory problem but we have started to get
Error: Deadline Exceededwith the later versions.Cant figure out way its started to be thrown more often only change is the version.
Let me know if we can provide anymore information to get this resolved.
Thanks!