[BUG] Azure.Messaging.ServiceBus messages bigger than 1MB are empty #24253
Labels
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
Describe the bug
I have a Premium Service Bus namespace with a topic configured to receive messages up to 100MB.
I have created a basic .NET 5 console app using the latest 7.2.1 Azure.Messaging.ServiceBus package.
I send to the topic a message with a string slightly over 1MB which was the old limit.
The message is sent without error.
In the queue the message exists but it is empty and with a size of 0. (checked with the azure portal service bus explorer, and queue explorer application).
I have tested both ServiceBusTransportType.AmqpWebSockets/AmqpTcp TransportTypes
Expected behavior
The message should not be empty.
Actual behavior (include Exception or Stack Trace)
The message with a content over 1MB is sent successfully but appears to have an empty content in the queue.
To Reproduce
string fileContent = File.ReadAllText("file.Log");
Environment:
The text was updated successfully, but these errors were encountered: