Timed out waiting for response from authorization server

Offen
#412 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
45/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
python
Bereich
authentication

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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
Vorherrschende Sprache
Python
Sterne
671
Forks
76
Ø Merge
17 Std. 55 Min.
Gemergte PRs (30 T.)
46

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus iterative/PyDrive2

Alle Issues in iterative/PyDrive2

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.