Find answers from the community

Updated 2 years ago

For gmail gcal tool having problems with

At a glance
For gmail / gcal tool, having problems with the example tutorial. Setting the permissions right to get the credentails.json file seems quite tricky?
Navigated a few issues but now the llamahub gmail base package has a refresh issue?
Plain Text
File ".../python3.11/site-packages/llama_hub/tools/gmail/base.py", line 78, in _get_credentials
    creds.refresh(Request())
  File ".../python3.11/site-packages/google/oauth2/credentials.py", line 345, in refresh
    ) = reauth.refresh_grant(
        ^^^^^^^^^^^^^^^^^^^^^
google.auth.exceptions.RefreshError: ('invalid_scope: Bad Request', {'error': 'invalid_scope', 'error_description': 'Bad Request'})
s
2 comments
had a token.json from google that I needed to delete. Still working on the problem of how there is 2 types of credential.json types, and one is giving ValueError: Client secrets must be for a web or installed app.
The 2 ways to make a credentials.json
Attachments
Screen_Shot_2023-08-03_at_6.38.34_PM.png
Screen_Shot_2023-08-03_at_6.37.33_PM.png
Add a reply
Sign up and join the conversation on Discord