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?
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'})