Token must be a short-lived token and in a reasonable timeframe

后端 未结 10 1364
天涯浪人
天涯浪人 2020-11-27 17:37

I am having the same error as this. In my case it is happening when the app is trying to upload a file via Google Cloud Client API.

POST https://www.googleap         


        
10条回答
  •  感动是毒
    2020-11-27 17:48

    I had the similar problem and my job was keep failing with below error:

      File "/usr/local/lib/python2.7/site-packages/google/oauth2/_client.py", line 59, in _handle_error_response
        error_details, response_body)
    google.auth.exceptions.RefreshError: ('invalid_grant: Invalid JWT: Token must be a short-lived token (60 minutes) and in a reasonable timeframe. Check your iat and exp values and use a clock with skew to account for clock differences between systems.', u'{\n  "error" : "invalid_grant",\n  "error_description" : "Invalid JWT: Token must be a short-lived token (60 minutes) and in a reasonable timeframe. Check your iat and exp values and use a clock with skew to account for clock differences between systems."\n}')
    2018-05-1713:01:01:  API CALL iOS intra day: module failed.
    

    The actual root cause was the system time was out of sync with the server. I have refreshed the ntp server which synced the time and the problem was resolved.

提交回复
热议问题