azure-sdk-for-net
azure-sdk-for-net copied to clipboard
[QUERY] "Invalid Audience" error instead of "Entity Not Found"
Library name and version
Azure.Messaging.Servicebus 7.14.0
Query/Question
Regarding the previous issue, I should expect " 404 messaging entity not found" but I am starting to get "401 Invalid Audience". Did something change at the service level where the exception is reported differently now?
This used to work until yesterday when the exception was "messaging entity not found" and I handled it in my code and it has changed to "Invalid Audience". Note that this happens if I use SasToken generated for a particular queue. Previously, this worked for both connection string and long-lived-sas-connection-string generated for a given queue.
Need inputs on whether the service level exception behaviour and if the return error codes have changed.
Environment
No response