ValueError: Client secrets must be for a web or installed app
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 25/100
Línea de trabajo
The traceback points at InstalledAppFlow.from_client_secrets_file in quick2.py (line 43), which rejects a client secrets file that is not a web or installed app credential. Start by finding the Drive quickstart sample that loads the secrets file, and check which OAuth client type its setup instructions tell users to create. Done means the sample or its README either states the required client type clearly or fails with a readable message for the wrong type.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Expected Behavior
program works, prints list of files in google drive
Actual Behavior
Traceback (most recent call last):
File "/Users/mattf/googledocs-python/./quick2.py", line 65, in
main()
File "/Users/mattf/googledocs-python/./quick2.py", line 43, in main
flow = InstalledAppFlow.from_client_secrets_file(
File "/Users/mattf/googledocs-venv/lib/python3.9/site-packages/google_auth_oauthlib/flow.py", line 206, in from_client_secrets_file
return cls.from_client_config(client_config, scopes=scopes, **kwargs)
File "/Users/mattf/googledocs-venv/lib/python3.9/site-packages/google_auth_oauthlib/flow.py", line 164, in from_client_config
raise ValueError("Client secrets must be for a web or installed app.")
ValueError: Client secrets must be for a web or installed app.
Steps to Reproduce the Problem
- Follow the quickstart guide (https://developers.google.com/drive/api/v3/quickstart/python)
Specifications
- Python version (
python --version) - OS (Mac/Linux/Windows)
- 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 82/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
Reference check: findingsAbiertoaudit-reference-check
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
screenrec.com stopped workingAbiertosite-bug triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
canonical/paas-charm#407 · 1 comentario ·
Los mantenedores suelen responder en 5 días