GAM-team / got-your-back

Got Your Back (GYB) is a command line tool for backing up your Gmail messages to your computer using Gmail's API over HTTPS.
https://github.com/GAM-team/got-your-back/wiki
Apache License 2.0
2.6k stars 205 forks source link

Restore errors #340

Closed bryantech closed 2 years ago

bryantech commented 2 years ago

The issue tracker is for reporting product deficiencies. How do I questions should be posted to the discussion forum at https://groups.google.com/group/got-your-back. When in doubt, start at the discussion forum and return here only when instructed to do so.

Please confirm the following:

Full steps to reproduce the issue:

  1. During restore I get this error. ValueError: Token used too early, 1641481785 < 1641481885

Expected outcome (what are you trying to do?): Restore email Actual outcome (what errors or bad behavior do you see instead?):

I have tried with gyb versions, 1.41-1.52. 1.36 allows for restore but that isn't a permanent fix.

aaronadamsCA commented 2 years ago

I've noticed gyb is incredibly sensitive to the system clock being behind.

Check your system clock and compare it to your phone clock. You may just need to adjust it.

jay0lee commented 2 years ago

This is fixed in the latest release.

dsakura commented 2 months ago

Im receiving this error too, with last version of the software

Traceback (most recent call last):
  File "gyb.py", line 2817, in <module>
  File "gyb.py", line 2040, in main
  File "gyb.py", line 420, in getValidOauth2TxtCredentials
  File "gyb.py", line 532, in requestOAuthAccess
  File "gyb.py", line 547, in writeCredentials
  File "gyb.py", line 562, in _getValueFromOAuth
  File "gyb.py", line 556, in _decodeIdToken
  File "google\oauth2\id_token.py", line 160, in verify_oauth2_token
  File "google\oauth2\id_token.py", line 132, in verify_token
  File "google\auth\jwt.py", line 302, in decode
  File "google\auth\jwt.py", line 216, in _verify_iat_and_exp
google.auth.exceptions.InvalidValue: Token used too early, 1719118946 < 1719118978. Check that your computer's clock is set correctly.

Thank you