question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

403 when retreiving 'https://www.googleapis.com/discovery/v1/apis/gmail/v1/rest'

See original GitHub issue

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

  • 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

  1. 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:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
busunkim96commented, Jul 6, 2020

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.

0reactions
busunkim96commented, Jul 8, 2020

Opened #962 to track.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found