Cannot run python cal sample from container (auth fails)
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 18/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- docker, python
- Domaine
- authentication
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Python
- Étoiles
- 1.4k
- Forks
- 917
- Merge moyen
- 3 min
- PR mergées (30 j)
- 1
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de googleworkspace/python-samples
-
ايقاف البحث الأمنPeut-être à nouveau libre @sqrrrl l’a pris il y a 400 jours, et aucune pull request n’est ouverte. Ouverte
googleworkspace/python-samples#2434 · 1 personne assignée ·
-
Slow Uploads using Google Drive API with PythonPeut-être à nouveau libre @sqrrrl l’a pris il y a 740 jours, et aucune pull request n’est ouverte. Ouverte
googleworkspace/python-samples#1852 · 1 commentaire · 1 personne assignée ·
-
403 error from google after a few successful runs of my codePeut-être à nouveau libre @vinay-google l’a pris il y a 912 jours, et aucune pull request n’est ouverte. Ouverte
googleworkspace/python-samples#1424 · 1 personne assignée ·
-
How to see the progress of files which is getting uploadedPeut-être à nouveau libre @vinay-google l’a pris il y a 928 jours, et aucune pull request n’est ouverte. Ouverte
googleworkspace/python-samples#1404 · 1 personne assignée ·
-
Phyton SamplesPeut-être à nouveau libre @PierrickVoulet l’a pris il y a 975 jours, et aucune pull request n’est ouverte. Ouverte
googleworkspace/python-samples#1279 · 1 personne assignée ·
Toutes les issues de googleworkspace/python-samples
Issues similaires
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 77/100
canonical/paas-charm#407 · 1 commentaire ·
Les mainteneurs répondent en général sous 5 jours
-
bug
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
FAIRmat-NFDI/pynxtools-spm#136 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement tooling
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
Les mainteneurs répondent en général sous 1 jour
-
`read_nexus` entry point points to a function that no longer existsPeut-être pris @RubelMozumder l’a pris aujourd’hui. Ouverteannotator bug
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
FAIRmat-NFDI/pynxtools#876 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
[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 retryingPeut-être pris @yipinghuang1991 l’a pris aujourd’hui. Ouvertecomp/agent P2 type/bug
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
NousResearch/hermes-agent#156837 ·
Les mainteneurs répondent en général sous 1 jour