Skip to content

ValueError: Client secrets must be for a web or installed app. #136

@sruriel

Description

@sruriel

Expected Behavior

List the google drive content

Actual Behavior

raceback (most recent call last):
File "list_drive.py", line 48, in
main()
File "list_drive.py", line 28, in main
'credentials.json', SCOPES)
File "/home/rommel_uriel/.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 "/home/rommel_uriel/.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.

Steps to Reproduce the Problem

1.Run the code in python 3.7
1.
1.

Specifications

  • Python 3.7 (python --version) on ubuntu
    Linux instance-4 4.9.0-11-amd64 Add region tags #1 SMP Debian 4.9.189-3+deb9u1 (2019-09-20) x86_64 GNU/Linux
    (base) rommel_uriel@instance-4:~$

  • OS (Mac/Linux/Windows)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions