google.auth.exceptions.RefreshError: ('deleted_client: The OAuth client was deleted.', {'error': 'deleted_client', 'error_description': 'The OAuth client was deleted.'})

6,531 views
Skip to first unread message

Livio Alvarenga

unread,
Feb 1, 2022, 7:11:58 PM2/1/22
to Google Cloud Developers
How is everything? I have an error in the google drive API. Everything worked perfectly, but I deleted and recreated the OAuth 2.0 credentials and now I have this error:

```
raise exceptions.RefreshError(error_details, response_data)
google.auth.exceptions.RefreshError: ('deleted_client: The OAuth client was deleted.', {'error': 'deleted_client', 'error_description': 'The OAuth client was deleted.'})
```

Has anyone had the same error and could help?

Victoria Barbero Precedo

unread,
Feb 2, 2022, 6:11:47 AM2/2/22
to Google Cloud Developers
Hi,

In my understanding when this error appears it means that maybe the credentials (tokens) used are the ones deleted and to be able to avoid this error you could try deleting the old tokens and try it again, here I found a related case in StackOverflow

I hope it helps.
Reply all
Reply to author
Forward
0 new messages