Open Vladcorjuc opened 2 weeks ago
@anuchandy @conniey @lmolkova
Thank you for your feedback. Tagging and routing to the team member best able to assist.
Hi @Netyyy, could you / spring-team please help take a look? It seems the Spring layer is sending message with default encoding (DATA), but then later it is attempting to access the message content as VALUE, the getValue API should be invoked only if the message was encoded as VALUE
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