Skip to content
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

Grpc Stream Error: 8 RESOURCE_EXHAUSTED: Received message larger than max (1752460652 vs 4194304) #229

Open
DylanAhTeck-ONE opened this issue Aug 13, 2024 · 2 comments

Comments

@DylanAhTeck-ONE
Copy link

SDK Component

Zeebe

Expected Behavior

In the previous community project, are workers were able to poll for work

Current Behavior

Using the new sdk and the same worker/ZB client configs, our workers are getting Grpc Stream Error: 8 RESOURCE_EXHAUSTED: Received message larger than max (1752460652 vs 4194304) errors

This is happening immediately after worker creation - before any process instances etc are created - for all of our workers. The received message size (1752460652) is the same for all the worker errors.

Possible Solution

Steps to Reproduce

Context (Environment)

@jwulf
Copy link
Member

jwulf commented Aug 14, 2024

I'm not aware of a code change that will do that. The Zeebe gRPC client code is basically ported across.

Please see this issue: camunda/camunda#12104

If this doesn't allow you to fix it, then what we'll need for this is a Minimal Reproducer. That would be a Docker compose to start a broker setup, and a small project that triggers this error condition. With that in hand we can fix it.

@jwulf jwulf reopened this Dec 13, 2024
@jwulf
Copy link
Member

jwulf commented Dec 13, 2024

This seems to be caused by grpc/grpc-node#2822

It will happen if there are no jobs available for 60 seconds on SaaS. It is a misinterpretation of the 504 timeout response.

The workaround is to set longPoll: 50000 in the worker constructor. This causes the poll to timeout on the client before the gateway returns the 504 timeout response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants