googleapis / googleapis/google-cloud-node

Cannot listen to more than 20 subscriptions?

Open
#7,636 9 comments 0 reactions 1 assignee Claimed by @feywind View on GitHub
api: pubsub priority: p3 type: feature request
Dominant language
TypeScript
Stars
3.2k
Forks
712
Avg merge
2d 3h
Merged PRs (30d)
99

Description

Thanks for stopping by to ask us a question! Please make sure to include:
- What you're trying to do

Ive spent the last 2 days trial and error-ing a lot of parameters, but as soon as I listen to more than 20 subscriptions. I am no longer able to 'ack' any messages.

I am using Exactly Once Delivery and `ackWithResponse()` just hangs as soon as I start more than 20 listeners, I have rotated which subs these are and it seems purely the number of subs, not what they are.

Is there a config item Ive missed in GCP / Pubsub somewhere?

Thanks!

- What code you've already tried

- Any error messages you're getting
No error messages or warnings about max event listeners or anything

Eventually if I wait 10 mins I will get the below error, this is 10 minutes after calling `ackWithResponse()` and hanging
``` err: {
"type": "AckError",
"message": "INVALID : Retried for too long",
"stack":
```

**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.