Cannot run python cal sample from container (auth fails)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 18/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- docker, python
- Lĩnh vực
- authentication
Hướng nghiên cứu
The reproduction centers on the quickstart script's local OAuth redirect flow, where the sample starts a local server inside the container and the browser is sent to a random port. Read the flow that picks the redirect port and reproduce by running the Python sample inside a Docker container with a fixed port published. Done would mean a documented or code-level way to complete auth from a host browser, but the issue has no maintainer reply and needs Docker networking and OAuth knowledge.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Expected Behavior
When I try to run the python cal sample from within a container it should allow me to auth successfully.
Actual Behavior
The terminal (in container) provides an "offline url" which when clicked (on desktop) redirects to a random high port that is not available from the desktop.
e.g:
Clicking "Allow" will redirect you to: http://localhost:46603
Clicking "Allow" will redirect you to: http://localhost:40391
Steps to Reproduce the Problem
- docker run -it python bash
- container> pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib
- container> python quickstart.py
- host (chrome)> Please visit this URL to authorize this application: https://accounts.google.com/o/oauth2/auth?...&access_type=offline
- Auth, then the redirect will fail
Note: Have also tried modifying the auth code to run on port 8080 and expose that port in the container. Have also confirmed that the port is exposed with a test of "python -m http.server 8080" in the container.
- Ngôn ngữ chính
- Python
- Star
- 1.4k
- Fork
- 917
- Merge trung bình
- 3 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của googleworkspace/python-samples
-
ايقاف البحث الأمنCó thể làm lại được @sqrrrl đã nhận 400 ngày trước và không có pull request nào đang mở. Đang mở
googleworkspace/python-samples#2434 · 1 người được giao ·
-
Slow Uploads using Google Drive API with PythonCó thể làm lại được @sqrrrl đã nhận 740 ngày trước và không có pull request nào đang mở. Đang mở
googleworkspace/python-samples#1852 · 1 bình luận · 1 người được giao ·
-
403 error from google after a few successful runs of my codeCó thể làm lại được @vinay-google đã nhận 912 ngày trước và không có pull request nào đang mở. Đang mở
googleworkspace/python-samples#1424 · 1 người được giao ·
-
How to see the progress of files which is getting uploadedCó thể làm lại được @vinay-google đã nhận 928 ngày trước và không có pull request nào đang mở. Đang mở
googleworkspace/python-samples#1404 · 1 người được giao ·
-
Phyton SamplesCó thể làm lại được @PierrickVoulet đã nhận 975 ngày trước và không có pull request nào đang mở. Đang mở
googleworkspace/python-samples#1279 · 1 người được giao ·
Tất cả issue của googleworkspace/python-samples
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
canonical/paas-charm#407 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
FAIRmat-NFDI/pynxtools-spm#136 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement tooling
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
`read_nexus` entry point points to a function that no longer existsCó thể đã có người làm @RubelMozumder đã nhận hôm nay. Đang mởannotator bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
FAIRmat-NFDI/pynxtools#876 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: HTTP 499 (Client Closed Request) is classified as a non-retryable format_error, so a mid-flight abort fails the turn over instead of retryingCó thể đã có người làm @yipinghuang1991 đã nhận hôm nay. Đang mởcomp/agent P2 type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
NousResearch/hermes-agent#156837 ·
Maintainer thường phản hồi trong vòng 1 ngày