Home > Mobile >  How do we check a message that caused a SessionLockLostException error in the service bus?
How do we check a message that caused a SessionLockLostException error in the service bus?

Time:07-27

I am getting a few sessionlostlock exceptions while sending some messages to our SB triggered function app. We've set up alerts to check whenever such an error occurs. Although these messages do get retried and there no messages are sent to the DLQ. How do I find out which messages gave these exceptions in the first place.

CodePudding user response:

How do I find out which messages gave these exceptions in the first place?

According to documentation:

public Microsoft.ServiceBus.Messaging.MessagingExceptionDetail Detail { get; }

References: Cause and resolution of SessionLockLostException, Class SessionLockLostException and SessionLockLostException(String, Exception)

  • Related