You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered a problem while subscribing to the OnMalformedMessageReceived event and receiving an unreadable message. Consequently, I had no clue how to troubleshoot it.
The message from OnMalformedMessageReceived was decoded as UTF-8 without checking the ContentEncoding property of the AMQP.Message. As a result, I obtained garbage data when the content was encoded using gzip.
Is it possible to check the ContentEncoding first and then decode the message body? Alternatively, wrapping the AMQP.Message and passing to the subscriber?
The text was updated successfully, but these errors were encountered:
bruce8300323
changed the title
Retrieve garbage data from the OnMalformedMessageReceived event
Retrieve garbage data from the OnMalformedMessageReceived event if the malformed message has been compressed using gzip.
Aug 8, 2023
I encountered a problem while subscribing to the OnMalformedMessageReceived event and receiving an unreadable message. Consequently, I had no clue how to troubleshoot it.
The message from OnMalformedMessageReceived was decoded as UTF-8 without checking the ContentEncoding property of the AMQP.Message. As a result, I obtained garbage data when the content was encoded using gzip.
Is it possible to check the ContentEncoding first and then decode the message body? Alternatively, wrapping the AMQP.Message and passing to the subscriber?
The text was updated successfully, but these errors were encountered: