3
时当试图走出Google Cloud Storage sample(或任何调用write使用cloudstorage
模块文件,在其他项目也一样)我得到一个下面的错误获取AccessTokenRefreshError“invalid_grant”上dev_appserver使用云端储存
INFO 2016-12-05 01:16:06,999 client.py:804] Refreshing access_token
INFO 2016-12-05 01:16:07,198 client.py:827] Failed to retrieve access token: {
"error" : "invalid_grant"
}
ERROR 2016-12-05 01:16:07,200 api_server.py:272] Exception while handling service_name: "app_identity_service"
method: "GetAccessToken"
request: "\n7https://www.googleapis.com/auth/devstorage.full_control"
request_id: "YpfXhQJczA"
... long long stack traces ...
RuntimeError: AccessTokenRefreshError(u'invalid_grant',)
问题是,当我将应用程序部署到Google App Engine时,调用工作正常。
我可以证实这让我省了几个小时。 – Mark