Timed out waiting for response from authorization server

Đang mở
#412 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
authentication

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Python
Star
671
Fork
76
Merge trung bình
17 giờ 55 phút
Pull request đã merge (30 ngày)
46

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của iterative/PyDrive2

Tất cả issue của iterative/PyDrive2

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.