-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] token retrieval intermittently stuck in BearerTokenAuthenticationPolicy in Azure.Core 1.40.0 #44817
[BUG] token retrieval intermittently stuck in BearerTokenAuthenticationPolicy in Azure.Core 1.40.0 #44817
Comments
Hi @v-mykhalchuk. Thanks for reaching out and we regret that you're experiencing difficulties. Unfortunately, there's not enough information available to assist. Please collect a 5-minute slice of verbose Azure SDK logs around the behavior for analysis. Examples for gathering them can be found in this sample and further context is discussed in [Logging with the Azure SDK for .NET)(https://learn.microsoft.com/dotnet/azure/sdk/logging). |
Hi @v-mykhalchuk. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue. |
I also experienced this issue after upgrading to Azure.Identity 1.12.0 which updated the Azure.Core reference to 1.40.0. Reverting back to 1.11.2 (Azure.Core 1.38.0) resolved the issue. Stack Trace: |
@jsquire we are working on some sort of repro for this. We had to revert back the version in our main code as this was blocking our testing. I will reply back when we are able to collect any additional info on this. |
Hi @v-mykhalchuk. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue. |
I'm seeing the same issue, possibly related to this new feature released in Azure.Core I want to emphasize that it seems to hang indefinitely in this spot, unless the cancellation is triggered. One of our calls (GetIfExists on ManagedServiceIdentity) was running for 19.5 minutes before being cancelled via the supplied CancellationToken (part of a long running job). Example stack trace:
|
Hello Do you have an approximate date of when the new Azure.Core package version will be available? |
There was reply in similar issue #44901 that it is expected to release later this week |
Library name and version
Azure.Core 1.40.0
Describe the bug
Hello,
After update from version 1.38.0 to 1.40.0 of Azure.Core we have started to experience intermittent issues of Requests being stuck in BearerTokenAuthenticationPolicy.
Specifically, we are trying to get a secret from key vault under user-assigned managed indentity, and we see that the SecretClient.GetSecret dependency is being stuck for a duration of our request timeout, and then fails with OperationCancelledException. Same code seem to work well after downgrade back to 1.38.0 without any other changes.
When the issue occurs, it reproduces pretty reliably in the same place for the same secret until application restart.
There is no high concurrency involved in this code path.
Stack Trace:
Expected behavior
KeyVault call is executed
Actual behavior
The call is stuck and times out
Reproduction Steps
Unfortunately, we don't have a repro yet.
Environment
Azure App Services, Windows, .NET 8.0
The text was updated successfully, but these errors were encountered: