-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
403 when retreiving 'https://www.googleapis.com/discovery/v1/apis/gmail/v1/rest' #959
Comments
I'm having this same issue. |
same issue for me. |
Hi all, Sorry to hear you're having trouble. It looks like there is an issue with the backend API. The Gmail API team is actively working on a fix. Please keep an eye on https://issuetracker.google.com/issues/160441983. I am closing this issue as there is no action we can take in the library. |
This issue seems to only affect the Python library as it doesn't seem to cache the discovery file. This is a workaround recommended by a user in the issue: _As a temporary workaround, the discovery document is available at: https://raw.githubusercontent.com/googleapis/google-api-go-client/master/gmail/v1/gmail-api.json (this is a GitHub repository owned by Google for the Golang Google API library) The Python client library can use this file stored locally rather than trying to retrieve it from googleapis.com: discovery_doc = json.load('gmail-api.json') there should be similar methods for other language libraries._ Seems to work fine on Javascript and Go as they seem to have a cache. Can you not align Python with them? |
the discovery file is cacheable via a cache class, however there is a TTL so eventually will fail |
@randalpinto We're looking into publishing the package with a copy of the discovery doc that the library can fall back to. No definite plans yet though. |
It's problem from Google side, and they already fix it. |
@busunkim96 although this has now been addressed by Google sounds like a good idea to still have fallback discovery docs in the library as with all the other libraries? Is there a separate issue to track this request? |
Opened #962 to track. |
This has been logged on stack overflow: https://stackoverflow.com/questions/62761519/httperror-403-when-requesting-https-www-googleapis-com-discovery-v1-apis-gmail
and google support: https://issuetracker.google.com/issues/160441983
Environment details
google-api-python-client
version: 1.7.11Steps to reproduce
Code example
Stack trace
The text was updated successfully, but these errors were encountered: