Havret / dotnet-activemq-artemis-client

.NET Client for Apache ActiveMQ Artemis
https://havret.github.io/dotnet-activemq-artemis-client/
MIT License
64 stars 11 forks source link

Getting a GUID-type messageId throws InvalidCastException #492

Open dominiksondevops opened 5 months ago

dominiksondevops commented 5 months ago

Describe the bug

For ActiveMQ.Artemis.Client.Message coming from AutoRecoveringConsumer.ReceiveAsync:

When messageId is a GUID, getting messageId through message.MessageId throws:

System.InvalidCastException: Unable to cast object of type 'System.Guid' to type 'System.String'. at ActiveMQ.Artemis.Client.Message.get_MessageId()

Expected behavior

MessageId should be returned

Environment:

Additional context

none