Make sure the token provider is created with the correct values. The TokenProvider object couldn't acquire a token, the token is invalid, or the token doesn't contain the claims required to do the operation.
#Masstransit python code
In rare cases, the ambient transaction is already disposed.Ĭheck the code and make sure it doesn't invoke operations on a disposed object. Make sure the requested operation is valid.Īn attempt is made to invoke an operation on an object that has already been closed, aborted, or disposed. For example, Complete() generates this exception if the message was received in ReceiveAndDelete mode.Ĭheck the code and the documentation. The requested user operation isn't allowed within the server or service. Retry might help in some cases add retry logic to code. It can happen because of network or other infrastructure delays.Ĭheck the system state for consistency and retry if necessary. The server may have completed the requested operation. The server didn't respond to the requested operation within the specified time, which is controlled by OperationTimeout. The following table lists messaging exception types, and their causes, and notes suggested action you can take. General action: specific to the exception type refer to the table in the following section:Īzure Service Bus doesn't retry an operation in case of an exception when the operation is in a transaction scope. Other exceptions (, System.TimeoutException,, ).For more information, see Retry guidance. The RetryPolicy class in the client SDK can be configured to handle retries automatically. General action: retry the operation or notify users. General action: review your configuration and change if necessary. Setup/configuration error (, System.UnauthorizedAccessException.General action: try to fix the code before proceeding. User coding error ( System.ArgumentException, System.InvalidOperationException, System.OperationCanceledException, ).The meaning and causes of an exception can vary depending on the type of messaging entity: The messaging APIs generate exceptions that can fall into the following categories, along with the associated action you can take to try to fix them.