Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/276.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 谷歌API';s403错误_Python_Google App Engine - Fatal编程技术网

Python 谷歌API';s403错误

Python 谷歌API';s403错误,python,google-app-engine,Python,Google App Engine,我使用OAuth2.0提供的GoogleAPI,但有些是可以的,有些是错误的 Server responded with: 403, <HTML> <HEAD> <TITLE>You are not authorized to access this API</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1>You are not author

我使用OAuth2.0提供的GoogleAPI,但有些是可以的,有些是错误的

Server responded with: 403, <HTML>
<HEAD>
<TITLE>You are not authorized to access this API</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>You are not authorized to access this API</H1>
<H2>Error 403</H2>
</BODY>
</HTML>
服务器响应为:403,
您无权访问此API
您无权访问此API
错误403
这就是原因?

两个可能的原因:-

  • 当我尝试使用未注册或超出每日限制的身份验证密钥进行访问时,会出现以下错误:

    { “错误”:{ “错误”:[ { “域”:“usageLimits”, “原因”:“dailyLimitExceededUnreg”, “留言”:“超出每日限额,请注册”, “扩展帮助”:https://code.google.com/apis/console" } ], “代码”:403, “消息”:“超出每日限制。请注册” } }


  • 这只是一个猜测,但我怀疑您可能无权访问该API…谢谢,Burhan Khalid。但我使用的API没有OAuth2.0,没关系!我不明白。 { "error": { "errors": [ { "domain": "usageLimits", "reason": "dailyLimitExceededUnreg", "message": "Daily Limit Exceeded. Please sign up", "extendedHelp": "https://code.google.com/apis/console" } ], "code": 403, "message": "Daily Limit Exceeded. Please sign up" } }