quickstart.py: Client secrets must be for a web or installed app.
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- python
- Área
- authentication
Línea de trabajo
The traceback points to the from_client_secrets_file call near line 31 of the quickstart script (named google_docs.py in the report), which loads credentials.json through google_auth_oauthlib's InstalledAppFlow. Start there and check whether the sample expects an OAuth client file, since a service account key is rejected. Done means either the sample accepts a service account key or the README clearly says which credential type to download. The thread has been silent for about three years, so confirm with a maintainer before starting.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Steps to Reproduce the Problem
- Create Service account and download JSON file with credentials
- Run quickstart.py
Expected Behavior
The script works just fine, everything works from the box.
Actual Behavior
The traceback:
Traceback (most recent call last):
File "google_docs.py", line 46, in <module>
main()
File "google_docs.py", line 31, in main
'credentials.json', SCOPES)
File "/usr/local/lib/python3.7/site-packages/google_auth_oauthlib/flow.py", line 199, in from_client_secrets_file
return cls.from_client_config(client_config, scopes=scopes, **kwargs)
File "/usr/local/lib/python3.7/site-packages/google_auth_oauthlib/flow.py", line 159, in from_client_config
'Client secrets must be for a web or installed app.')
ValueError: Client secrets must be for a web or installed app.
Specifications
- Python version
Python 3.7.4 - OS: Mac
Workaround:
The workaround I've found for this issue:
https://stackoverflow.com/a/61892378/7856072
(this workaround proves that credentials.json is the correct file for authorization and account has all necessary rights).
- Lenguaje dominante
- Python
- Estrellas
- 1.4k
- Forks
- 917
- Merge medio
- 3 min
- PR fusionados (30 d)
- 1
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de googleworkspace/python-samples
-
ايقاف البحث الأمنQuizá libre de nuevo @sqrrrl la tomó hace 400 días y no hay ningún pull request abierto. Abierto
googleworkspace/python-samples#2434 · 1 asignado ·
-
Slow Uploads using Google Drive API with PythonQuizá libre de nuevo @sqrrrl la tomó hace 740 días y no hay ningún pull request abierto. Abierto
googleworkspace/python-samples#1852 · 1 comentario · 1 asignado ·
-
403 error from google after a few successful runs of my codeQuizá libre de nuevo @vinay-google la tomó hace 912 días y no hay ningún pull request abierto. Abierto
googleworkspace/python-samples#1424 · 1 asignado ·
-
How to see the progress of files which is getting uploadedQuizá libre de nuevo @vinay-google la tomó hace 928 días y no hay ningún pull request abierto. Abierto
googleworkspace/python-samples#1404 · 1 asignado ·
-
Phyton SamplesQuizá libre de nuevo @PierrickVoulet la tomó hace 975 días y no hay ningún pull request abierto. Abierto
googleworkspace/python-samples#1279 · 1 asignado ·
Todos los issues de googleworkspace/python-samples
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
readthedocs/readthedocs-builder#73 ·
Los mantenedores suelen responder en 1 día
-
area: ci bug good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
hffgzktbcc-blip/ounce-core#484 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
vllm-project/vllm-torchtpu#3395 ·
Los mantenedores suelen responder en 1 día
-
Hermes plugin: MITM-domain discovery misses the model: block (provider/base_url nested under model:) — traffic blind-tunnels silently, zero compressionPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
ranxianglei/billion-context#7063 ·
Los mantenedores suelen responder en 1 día