Invalid scope error when trying to access gmail api

400. Thatโ€™s an error.

Error: invalid_scope

You don't have permission to access some scopes. Your project is trying to access scopes that need to go through the verification process. {invalid = [https:// mail.google.com/]} If you need to use one of these scopes, submit a verification request.

      

This is the error I get when I streamed this link: https://developers.google.com/gmail/api/quickstart/js

In the link, they asked me to access the webserver via python, but I am using apache. So in step 1.f, JavaScript Authorized Origin: I am using the link http: // localhost instead of http: // localhost: 8000. What might be causing the error?

+3


source to share


1 answer


You can link to this thread .

According to a post dated May 11, 2017, public apps that have access to certain user data must pass validation. If you see an access error for your app, please submit a request using our OAuth Developer Verification .

For apps for personal use and testing, join the "Unreviewed Apps Risky Access Permissions" Google group , which allows you to claim data access for personal and test accounts. For more information, see the Google API User Data Policy .



This blog about fixing this error might also be helpful.

+3


source







All Articles