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
On the first request the SDK creates this initialization task. If that initial task fails because of a networking error or customer not following the proper key rotation the task will always throw an exception. The same task is then awaited on for all future requests.
Solution:
The initialization task should be recreated if it failed so the SDK will actually retry on future request instead of returning the original exception from the first task.
//Internal team queries to show the issue
ComputeDebug
| where TIMESTAMP >= ago(1d)
| where Message contains "Unauthorized (401)"
| parse Message with * "Argument0=" acc "CosmosException" * "ActivityId: " act "Reason" *
| summarize min(TIMESTAMP), max(TIMESTAMP) by acc, act
| where max_TIMESTAMP - min_TIMESTAMP > timespan(1h)
| summarize count() by acc
ComputeDebug
| where TIMESTAMP >= ago(1d)
| where ActivityId =="0c7c1a30-26b4-4c88-80ca-c47f43ca0243" or Message contains "0c7c1a30-26b4-4c88-80ca-c47f43ca0243"
The text was updated successfully, but these errors were encountered:
On the first request the SDK creates this initialization task. If that initial task fails because of a networking error or customer not following the proper key rotation the task will always throw an exception. The same task is then awaited on for all future requests.
Solution:
The initialization task should be recreated if it failed so the SDK will actually retry on future request instead of returning the original exception from the first task.
//Internal team queries to show the issue
ComputeDebug
| where TIMESTAMP >= ago(1d)
| where Message contains "Unauthorized (401)"
| parse Message with * "Argument0=" acc "CosmosException" * "ActivityId: " act "Reason" *
| summarize min(TIMESTAMP), max(TIMESTAMP) by acc, act
| where max_TIMESTAMP - min_TIMESTAMP > timespan(1h)
| summarize count() by acc
ComputeDebug
| where TIMESTAMP >= ago(1d)
| where ActivityId =="0c7c1a30-26b4-4c88-80ca-c47f43ca0243" or Message contains "0c7c1a30-26b4-4c88-80ca-c47f43ca0243"
The text was updated successfully, but these errors were encountered: