403 when retreiving 'https://www.googleapis.com/discovery/v1/apis/gmail/v1/rest'
See original GitHub issueThis 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
- OS type and version:
- Python version: 3.8.2
- pip version: 20.0.2
google-api-python-client
version: 1.7.11
Steps to reproduce
- attempt to use gmail API
Code example
>>> from googleapiclient.discovery import build
>>> service = build('gmail', 'v1')
Stack trace
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/alex/.local/share/virtualenvs/virtualenv-6CTQ7t3F/lib/python3.8/site-packages/googleapiclient/_helpers.py", line 134, in positional_wrapper
return wrapped(*args, **kwargs)
File "/Users/alex/.local/share/virtualenvs/virtualenv-6CTQ7t3F/lib/python3.8/site-packages/googleapiclient/discovery.py", line 244, in build
raise e
File "/Users/alex/.local/share/virtualenvs/virtualenv-6CTQ7t3F/lib/python3.8/site-packages/googleapiclient/discovery.py", line 228, in build
content = _retrieve_discovery_doc(
File "/Users/alex/.local/share/virtualenvs/virtualenv-6CTQ7t3F/lib/python3.8/site-packages/googleapiclient/discovery.py", line 291, in _retrieve_discovery_doc
raise HttpError(resp, content, uri=actual_url)
googleapiclient.errors.HttpError: <HttpError 403 when requesting https://www.googleapis.com/discovery/v1/apis/gmail/v1/rest returned "The caller does not have permission">
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Ask Question - Stack Overflow
HttpError 403 when requesting https://www.googleapis.com/discovery/v1/apis/gmail/v1/rest returned "The caller does not have permission" · Ask ...
Read more >Resolve errors | Gmail - Google Developers
Resolve a 403 error: User rate limit exceeded. A userRateLimitExceeded error indicates that the per-user limit has been reached. Following is the JSON ......
Read more >Troubleshoot HTTP 403 errors from API Gateway - Amazon AWS
An HTTP 403 response code means that a client is forbidden from accessing a valid URL. The server understands the request, but it...
Read more >Script is getting 403 Forbidden using Custom Search API
I am trying to search Google using Custom Search API with the following Perl script. Strangely, the response with the script is [403...
Read more >How to resolve 403 forbidden issue when trying to use Google ...
When I try to get my app reviews by following Google Android Play API with owner ... Google AIP explorer https://developers.google.com/apis-exp.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Opened #962 to track.