2016-02-16 80 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 –

回答