Invalid scope error when trying to access gmail ap

2019-04-11 20:49发布

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 that I am getting when I flowed the tutorial in this link: https://developers.google.com/gmail/api/quickstart/js

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

1条回答
Luminary・发光体
2楼-- · 2019-04-11 21:07

You may refer with this thread.

As per the announcement on May 11, 2017, publicly available applications with access to certain user data must pass review. If you see an access error for your app, submit a request using our OAuth Developer Verification form.

For personal-use apps and those you are testing, join the Google group Risky Access Permissions By Unreviewed Apps, which allows you to approve data access for personal and testing accounts. See the Google API Services User Data Policy for more information.

This blog about how to fix this error might be also helpful.

查看更多
登录 后发表回答