Timed out waiting for response from authorization server

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

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python

調査の方向性

Start in pydrive2/auth.py at LocalWebserverAuth (around line 301), which calls flow.run_local_server from google_auth_oauthlib; the traceback shows the local WSGI app never received a request and returned None. Reproduce with the sample OAuth snippet on the reported interpreter (3.14t free-threaded build) and check whether the browser callback is blocked or the timeout is too short. Done looks like either a documented workaround, a configurable timeout/host parameter, or a fix that avoids the last_request_uri crash.

索引モデルが issue の本文から書いたものです。

説明

awaiting response priority-p1 triage

When trying to authorize the new client:

Traceback (most recent call last):
  File "/home/user/.venv/lib/python3.14t/site-packages/google_auth_oauthlib/flow.py", line 472, in run_local_server
    authorization_response = wsgi_app.last_request_uri.replace(
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'replace'

The above exception was the direct cause of the following exception:

  File "/home/user/.venv/lib/python3.14t/site-packages/pydrive2/auth.py", line 135, in _decorated
    self.auth.LocalWebserverAuth()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/home/user/.venv/lib/python3.14t/site-packages/pydrive2/auth.py", line 301, in LocalWebserverAuth
    credentials = self.flow.run_local_server(
        host=host_name,
    ...<3 lines>...
        **self._authorization_params(),
    )
  File "/home/user/.venv/lib/python3.14t/site-packages/google_auth_oauthlib/flow.py", line 476, in run_local_server
    raise WSGITimeoutError(
        "Timed out waiting for response from authorization server"
    ) from e
google_auth_oauthlib.flow.WSGITimeoutError: Timed out waiting for response from authorization server
主要言語
Python
スター
671
フォーク
76
平均マージ
17時間 55分
マージ済み PR(30日)
46

環境構築

はじめの一歩

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

iterative/PyDrive2 のほかの issue

iterative/PyDrive2 の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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