[BUG] "This method can be called if AMQP Message body type is 'VALUE'. The actual type is [DATA]" error is logged. #41636
Labels
azure-spring-servicebus
Spring service bus related issues.
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
An error is logged when sending a message to a topic when message is ServiceBusMessage of string.
The error logged is "This method can be called if AMQP Message body type is 'VALUE'. The actual type is [DATA]."
The message seems to be sent even if the error is logged.
Exception or Stack Trace
Stack-Trace available in debug
To Reproduce
Utilize the code snippet below to send a message to a topic.
Code Snippet
Expected behavior
No error should be logged if the message was sent with success.
Screenshots
If applicable, add screenshots to help explain your problem.
Setup (please complete the following information):
Additional context
It seems the error is logged two times.
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: