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
The error message sometimes contain JSON formatted strings. This causes links and URIs to be escaped. The formatting should be changed to avoid the JSON formatting.
Example exception: Microsoft.Azure.Cosmos.CosmosException : Response status code does not indicate success: Unauthorized (401); Substatus: 0; ActivityId: 24915954-9803-4100-b2e8-f2c62da94400; Reason: (Message: {"Errors":["The MAC signature found in the HTTP request is not the same as the computed signature. Server used following string to sign - 'get\ndocs\ndbs\/sampledb\/colls\/sample\/docs\/36a1777f-626d-485f-a1e9-f2971632317e\nthu, 25 feb 2021 04:49:48 gmt\n\n'. Learn more: https:\/\/aka.ms\/cosmosdb-tsg-mac-signature"]}
The text was updated successfully, but these errors were encountered:
One solution is to treat the Error object as a JObect. Then have a string builder and iterate over the JObject print each property name and value as a new line.
The error message sometimes contain JSON formatted strings. This causes links and URIs to be escaped. The formatting should be changed to avoid the JSON formatting.
azure-cosmos-dotnet-v3/Microsoft.Azure.Cosmos/src/Resource/CosmosExceptions/CosmosExceptionFactory.cs
Line 183 in 661f72c
Example exception:
Microsoft.Azure.Cosmos.CosmosException : Response status code does not indicate success: Unauthorized (401); Substatus: 0; ActivityId: 24915954-9803-4100-b2e8-f2c62da94400; Reason: (Message: {"Errors":["The MAC signature found in the HTTP request is not the same as the computed signature. Server used following string to sign - 'get\ndocs\ndbs\/sampledb\/colls\/sample\/docs\/36a1777f-626d-485f-a1e9-f2971632317e\nthu, 25 feb 2021 04:49:48 gmt\n\n'. Learn more: https:\/\/aka.ms\/cosmosdb-tsg-mac-signature"]}
The text was updated successfully, but these errors were encountered: