Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve garbage data from the OnMalformedMessageReceived event if the malformed message has been compressed using gzip. #191

Open
bruce8300323 opened this issue Aug 8, 2023 · 0 comments

Comments

@bruce8300323
Copy link

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?

@bruce8300323 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant