Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Regression : Timeout with azure identity

Open
#1,710 2 comments 0 reactions 1 assignee View on GitHub

@debonte is already working on this.

Since Oct 21, 2024.

Assessment

This issue has not been assessed yet.

Description

bug needs repro

My visualstudiocode was working like a charme
Once i get :
Image
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
Image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/debugpy

All issues in microsoft/debugpy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.