Regression : Timeout with azure identity
@debonte is already working on this.
Since Oct 21, 2024.
Assessment
This issue has not been assessed yet.
Description
My visualstudiocode was working like a charme
Once i get :
and upgrade debugpy
then my python was still running in a "Run" mode but in debug i get a time-out
DEBUG:azure.identity._internal.decorators:AzureCliCredential.get_token failed: Failed to invoke the Azure CLI
File "c:\Program Files\Python312\Lib\subprocess.py", line 1628, in _communicate
raise TimeoutExpired(self.args, orig_timeout)
subprocess.TimeoutExpired: Command '['cmd', '/c', 'az account get-access-token --output json --resource https://database.windows.net]' timed out after 10 seconds
may be my professional laptop get restrictions and i should ask to have flow opened :(
My code is :
from azure.identity import AzureCliCredential, ChainedTokenCredential
az_cli = AzureCliCredential()
az_cred = ChainedTokenCredential( az_cli)
az_token = az_cred.get_token("https://database.windows.net/.default")
print(az_token)
The GetToken fails in timeout
i revert to 2024.10.0 and it is working again
What could explain why it was working before and still working without debug mode ?
- Dominant language
- Python
- Stars
- 2.5k
- Forks
- 202
- Avg merge
- 5d 1h
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/debugpy
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
All issues in microsoft/debugpy
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
canonical/paas-charm#368 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
tech debt
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
StevenBlack/hosts#3256 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
qualcomm/qai-appbuilder#275 ·