Afsan Abdulali Gujarati
Afsan Abdulali Gujarati

Reputation: 1624

Error Code 413: The maximum message size quota for outgoing messages (1114112) has been exceeded

I am using Azure Service Bus as the broker for my Celery module. One of the messages in my code seems to exceed the 1 MB max message size set by Azure.

I tried to reconfigure the Max message size (in KB) to 10 MB

enter image description here

However, when I go back to the Queues, it still shows the Max Size as 1024 (which I believe is 1 MB) and I still get the same error when running the code.

enter image description here

What am I doing wrong here? I understand I should try to reduce the size of my message but just wanted to try this out first before I tried to fix that.

Upvotes: 0

Views: 1201

Answers (1)

Sean Feldman
Sean Feldman

Reputation: 26057

The standard tier allows a single message size of up to 256KB. The premium tier allows messages up to 1MB and 100MB with the recent preview (needs to be enabled on the pre-existing queues). Note that your message has some metadata and some overhead so the payload should be slightly less than the maximum.

Upvotes: 0

Related Questions