Cannot run python cal sample from container (auth fails)
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 18/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- docker, python
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Python
- 星标
- 1.4k
- 派生
- 917
- 平均合并
- 3 分钟
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
googleworkspace/python-samples 的其他 Issue
-
ايقاف البحث الأمن可能重新可做 @sqrrrl 于 400 天前认领,目前没有进行中的 PR。 未关闭
googleworkspace/python-samples#2434 · 已指派 1 人 ·
-
Slow Uploads using Google Drive API with Python可能重新可做 @sqrrrl 于 740 天前认领,目前没有进行中的 PR。 未关闭
googleworkspace/python-samples#1852 · 1 条评论 · 已指派 1 人 ·
-
403 error from google after a few successful runs of my code可能重新可做 @vinay-google 于 912 天前认领,目前没有进行中的 PR。 未关闭
googleworkspace/python-samples#1424 · 已指派 1 人 ·
-
How to see the progress of files which is getting uploaded可能重新可做 @vinay-google 于 928 天前认领,目前没有进行中的 PR。 未关闭
googleworkspace/python-samples#1404 · 已指派 1 人 ·
-
Phyton Samples可能重新可做 @PierrickVoulet 于 975 天前认领,目前没有进行中的 PR。 未关闭
googleworkspace/python-samples#1279 · 已指派 1 人 ·
查看 googleworkspace/python-samples 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 77/100
canonical/paas-charm#407 · 1 条评论 ·
维护者通常 5 天内回复
-
bug
难度 1/5 1 小时以内 新手友好度 90/100
FAIRmat-NFDI/pynxtools-spm#136 ·
维护者通常 1 天内回复
-
enhancement tooling
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
`read_nexus` entry point points to a function that no longer exists可能已有人在做 @RubelMozumder 今天认领。 未关闭annotator bug
难度 1/5 1 小时以内 新手友好度 88/100
FAIRmat-NFDI/pynxtools#876 · 1 条评论 ·
维护者通常 1 天内回复
-
[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 retrying可能已有人在做 @yipinghuang1991 今天认领。 未关闭comp/agent P2 type/bug
难度 2/5 1-3 小时 新手友好度 82/100
NousResearch/hermes-agent#156837 ·
维护者通常 1 天内回复