Cannot run python cal sample from container (auth fails)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 18/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- docker, python
- Ambito
- authentication
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 1.4k
- Fork
- 917
- Merge medio
- 3m
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di googleworkspace/python-samples
-
ايقاف البحث الأمنForse di nuovo libera @sqrrrl l’ha presa 400 giorni fa e non c’è nessuna pull request aperta. Aperta
googleworkspace/python-samples#2434 · 1 assegnatario ·
-
Slow Uploads using Google Drive API with PythonForse di nuovo libera @sqrrrl l’ha presa 740 giorni fa e non c’è nessuna pull request aperta. Aperta
googleworkspace/python-samples#1852 · 1 commento · 1 assegnatario ·
-
403 error from google after a few successful runs of my codeForse di nuovo libera @vinay-google l’ha presa 912 giorni fa e non c’è nessuna pull request aperta. Aperta
googleworkspace/python-samples#1424 · 1 assegnatario ·
-
How to see the progress of files which is getting uploadedForse di nuovo libera @vinay-google l’ha presa 928 giorni fa e non c’è nessuna pull request aperta. Aperta
googleworkspace/python-samples#1404 · 1 assegnatario ·
-
Phyton SamplesForse di nuovo libera @PierrickVoulet l’ha presa 975 giorni fa e non c’è nessuna pull request aperta. Aperta
googleworkspace/python-samples#1279 · 1 assegnatario ·
Tutte le issue di googleworkspace/python-samples
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
canonical/paas-charm#407 · 1 commento ·
I maintainer di solito rispondono entro 5 giorni
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
FAIRmat-NFDI/pynxtools-spm#136 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement tooling
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
`read_nexus` entry point points to a function that no longer existsForse già presa @RubelMozumder l’ha presa oggi. Apertaannotator bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
FAIRmat-NFDI/pynxtools#876 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[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 retryingForse già presa @yipinghuang1991 l’ha presa oggi. Apertacomp/agent P2 type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
NousResearch/hermes-agent#156837 ·
I maintainer di solito rispondono entro 1 giorno