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

Basic.publish: (406) PRECONDITION_FAILED - message size larger than configured max #428

Open
Muskanb opened this issue Feb 15, 2024 · 2 comments

Comments

@Muskanb
Copy link

Muskanb commented Feb 15, 2024

I've encountered this error while passing arguments that are purely strings, and I'm doubtful that they can generate a size this large:
exception: Basic.publish: (406) PRECONDITION_FAILED - message size 179010654 is larger than configured max size 134217728

This is my defined task throwing this error :
@shared_task
def test(
arg1, arg2,arg3,
arg4=None, arg5='github', arg6="full", pullRequestId=None, baseBranchName='', checkRunId=None
):
These are either strings or integers

@Muskanb
Copy link
Author

Muskanb commented Feb 26, 2024

@auvipy It would be great if you could help :)

@hambro
Copy link

hambro commented Nov 4, 2024

Had the same problem a year ago or so. The error only appeared if a pod had been running for a little bit of time. Tracked the bug down to the way Sentry patched into Celery, which appended a trace ID to the headers of the traces. At some point, we were sending tiny messages with 15Mb inane headers.
If you can reproduce it, see if you can get a hold of the actual payload to rabbitmq :)

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