You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using a custom OAuth 2.0 app for Google Tasks, and inexplicably sync has started failing. I can't figure out how to force the authorization flow again - the error trace is below.
My secret is still valid - fairly sure I just need to reauthorize the client.
>~/.local/bin/tw_gtasks_sync --tw-filter "status:pending" -l "Dom's To-Do list" --google-secret ~/.config/gtasks_secret.json
00:27:36.03 | INFO | Loading preferences...
00:27:36.03 | INFO | Loading preferences...
00:27:36.03 | INFO | Caching this configuration under the name - Dom%27s%20To-Do%20list__status%3Apending__None__.yaml...
00:27:36.03 | INFO |
Configuration:
===============
- TW Filter : status:pending
- TW Tags : ()
- TW Project : None
- TW Sync All Tasks : False
- Google Tasks : Dom's To-Do list - Prefer scheduled dates: False00:27:36.04 | INFO | Loading preferences...Exception was raised during program execution. File "/home/dzrodriguez/.local/bin/tw_gtasks_sync", line 8, in <module> sys.exit(main()) ^^^^^^ File "/home/dzrodriguez/.local/share/pipx/venvs/syncall/lib/python3.11/site-packages/click/core.py", line 1157, in __call__ return self.main(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/dzrodriguez/.local/share/pipx/venvs/syncall/lib/python3.11/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/home/dzrodriguez/.local/share/pipx/venvs/syncall/lib/python3.11/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/dzrodriguez/.local/share/pipx/venvs/syncall/lib/python3.11/site-packages/click/core.py", line 783, in invoke return __callback(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/dzrodriguez/.local/share/pipx/venvs/syncall/lib/python3.11/site-packages/syncall/scripts/tw_gtasks_sync.py", line 205, in main with Aggregator( File "/home/dzrodriguez/.local/share/pipx/venvs/syncall/lib/python3.11/site-packages/syncall/aggregator.py", line 136, in __enter__ self.start() File "/home/dzrodriguez/.local/share/pipx/venvs/syncall/lib/python3.11/site-packages/syncall/aggregator.py", line 219, in start self._side_A.start() File "/home/dzrodriguez/.local/share/pipx/venvs/syncall/lib/python3.11/site-packages/syncall/google/gtasks_side.py", line 75, in start creds = self._get_credentials() ^^^^^^^^^^^^^^^^^^^^^^^ File "/home/dzrodriguez/.local/share/pipx/venvs/syncall/lib/python3.11/site-packages/syncall/google/google_side.py", line 50, in _get_credentials creds.refresh(Request()) File "/home/dzrodriguez/.local/share/pipx/venvs/syncall/lib/python3.11/site-packages/google/oauth2/credentials.py", line 431, in refresh ) = reauth.refresh_grant( ^^^^^^^^^^^^^^^^^^^^^ File "/home/dzrodriguez/.local/share/pipx/venvs/syncall/lib/python3.11/site-packages/google/oauth2/reauth.py", line 366, in refresh_grant _client._handle_error_response(response_data, retryable_error) File "/home/dzrodriguez/.local/share/pipx/venvs/syncall/lib/python3.11/site-packages/google/oauth2/_client.py", line 68, in _handle_error_response raise exceptions.RefreshError(('invalid_grant: Token has been expired or revoked.', {'error': 'invalid_grant', 'error_description': 'Token has been expired or revoked.'})00:27:36.07 | ERROR | Application failed; Below you can find the error message and stack trace. If you think this is a bug, attach this stack trace to create a new issue -> [https://github.com/bergercookie/syncall/issues]. Also consider running in verbose mode '--verbose' to get more details on this issue.NoneType: None
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
Me again.
I'm using a custom OAuth 2.0 app for Google Tasks, and inexplicably sync has started failing. I can't figure out how to force the authorization flow again - the error trace is below.
My secret is still valid - fairly sure I just need to reauthorize the client.
Beta Was this translation helpful? Give feedback.
All reactions