Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Regression : Timeout with azure identity

オープン
#1,710 コメント 2 件 リアクション 0 件 担当者 1 名 GitHub で見る

@debonte がすでに取り組んでいます。

2024年10月21日 から。

評価

この issue はまだ評価されていません。

説明

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 ?

主要言語
Python
スター
2.5k
フォーク
205
平均マージ
1日 9時間
マージ済み PR(30日)
3

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/debugpy のほかの issue

microsoft/debugpy の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。