2016-02-16 52 views
3

尝试执行Google Prediction API时,我收到此错误讯息。Google Cloud - oauth2client.client.HttpAccessTokenRefreshError:invalid_grant

raise HttpAccessTokenRefreshError(error_msg, status=resp.status) 
oauth2client.client.HttpAccessTokenRefreshError: invalid_grant 

我的证书细节

{ 
    "scopes": [], 
    "private_key": "XXXXX", 
    "id_token": null, 
    "token_uri": "https://accounts.google.com/o/oauth2/token", 
    "token_info_uri": null, 
    "token_response": null, 
    "client_id": null, 
    "scope": "https://www.googleapis.com/auth/prediction https://www.googleapis.com/auth/devstorage.read_only", 
    "token_expiry": null, 
    "_class": "SignedJwtAssertionCredentials", 
    "refresh_token": null, 
    "_module": "oauth2client.client", 
    "private_key_password": "notasecret", 
    "access_token": null, 
    "service_account_name": "[email protected]", 
    "invalid": false, 
    "assertion_type": null, 
    "kwargs": {}, 
    "client_secret": null, 
    "revoke_uri": "https://accounts.google.com/o/oauth2/revoke", 
    "user_agent": null 
} 

请指点。谢谢。

+0

这是一个暂时的错误:两个原因,详情可从去年oauth2client GitHub的项目页面上的问题,报告中找到?这通常意味着您的访问令牌已过期,需要使用oauth2client.client.Credentials.refresh()进行刷新。 – Adam

+0

你有没有找到这个问题的解决方案? – Adam

+0

旧的问题,但这帮了我http://stackoverflow.com/a/14288818/785808 –

回答