You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug DocumentClientException is thrown when CosmosClient is instantiated with an invalid key (I.E. key was since rotated) and ReadAccountAsync called.
Expected behavior CosmosException should be thrown with status code 401.
Actual behavior
Assert.ThrowsException failed. Threw exception DocumentClientException, but exception CosmosException was expected.
Exception Message: The input authorization token can't serve the request. Please check that the expected payload is built as per the protocol, and check the key being used. Server used the following payload to sign: 'get
Environment summary
SDK Version: Microsoft.Azure.Cosmos 3.20.1
OS Version: Windows
The text was updated successfully, but these errors were encountered:
Describe the bug
DocumentClientException
is thrown whenCosmosClient
is instantiated with an invalid key (I.E. key was since rotated) andReadAccountAsync
called.Seems to be related to #1906.
To Reproduce
Expected behavior
CosmosException
should be thrown with status code401
.Actual behavior
Environment summary
SDK Version: Microsoft.Azure.Cosmos 3.20.1
OS Version: Windows
The text was updated successfully, but these errors were encountered: