[BUG] [Servicebus|Azure.Messaging.ServiceBus] SendMEssage MessageSizeExeeded in Azure #19053
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Bus
Describe the bug
I have an Azure function app that uses the Azure.Messaging.ServiceBus. Trying to send multiple messages in batch using CreateMessageBatchAsync. I'm adding messages with TryAddMesage and sends the batch if it returns false. This works localy but when I publish it to azure I get a MessageSizeExceeded when calling SendMessagesAsync.
It looks similar to this issue #18038
Expected behavior
SendMessagesAsync should be able to send the message,
Actual behavior (include Exception or Stack Trace)
Getting this error in the azure function log: The message (id:37495150, size:296449 bytes) is larger than is currently allowed (262144 bytes). (MessageSizeExceeded)
To Reproduce
And here is the log output
Environment:
Azure.Messaging.ServiceBus 7.1.0
.Net core 3.1
Azure Functions on Windows
The text was updated successfully, but these errors were encountered: