【发布时间】:2017-02-14 13:17:48
【问题描述】:
我正在使用“谷歌电子表格 API”从谷歌驱动器中获取数据。 有时它会显示以下错误。但是一旦我清除会话并再次重新加载页面,它就会运行良好。
'致命错误:'
Uncaughtexception'Google_Service_Exception'withmessage
{
"error":
{
"code":
401, "message":
"Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.", "errors":
[{
"message":
"Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.", "domain":
"global", "reason":
"unauthorized"
}], "status":
"UNAUTHENTICATED"
}
}
【问题讨论】:
标签: google-drive-api google-spreadsheet-api