Unable to deserialize the body bytes into object after upgrade the RabbitMQ Client from 5.1.1 to 6.2.4 #1168
Replies: 6 comments 1 reply
-
I will convert this issue to a GitHub discussion. Currently GitHub will automatically close and lock the issue even though your question will be transferred and responded to elsewhere. This is to let you know that we do not intend to ignore this but this is how the current GitHub conversion mechanism makes it seem for the users :( |
Beta Was this translation helpful? Give feedback.
-
The client does not deserialize any body paylods. Can you share two bodies with each version and how they were serialized? |
Beta Was this translation helpful? Give feedback.
-
@LoremipsumSharp your code doesn't provide quite enough information. We need to know how you set up your Connection, Model and consumer classes to check. I'm assuming your consumer is a subclass of |
Beta Was this translation helpful? Give feedback.
-
@lukebakken
while if i handle
But I was wondering why the |
Beta Was this translation helpful? Give feedback.
-
Just so you know, I'm coming up with a test to try and reproduce what you reported. As I said in this comment, I would really appreciate some code to be able to see the same issue. |
Beta Was this translation helpful? Give feedback.
-
Please see #1173 This demonstrates the correct way to do |
Beta Was this translation helpful? Give feedback.
-
I am using
RabbitMQ.Client
for messaging and using dead letter pattern to implement retry mechanism, everything works fine withRabbitMQ.Client
with version :5.1.1
.The pseudo-code is below:
However, when I upgrade the
RabbitMQ.Client
to6.2.4
,there is some probability that the body bytes of message unable deserialize to origin object when I receiving the message again from dead letter queue.When the retry ended,I inspect the dead letter in the database,some of them failed to convert to a normal string

By the way,the version of
RabbitMQ Server
is3.8.5
Beta Was this translation helpful? Give feedback.
All reactions