Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle "Backend Error" appropriately #3

Open
kanevk opened this issue Jan 23, 2020 · 0 comments
Open

Handle "Backend Error" appropriately #3

kanevk opened this issue Jan 23, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@kanevk
Copy link
Owner

kanevk commented Jan 23, 2020

Internet connection present
Error during syncing occurred
`sync_down` took 4.505069971084595 seconds
Internet connection present
2020-01-23 14:59:09 - Refreshing access token
Error during syncing occurred
`sync_down` took 5.417584180831909 seconds
Internet connection present
Traceback (most recent call last):
  File "sync_server.py", line 40, in <module>
    sync_note.sync_down(keep)
  File "/Users/kkanev/projects/gkeep-sync/sync_note.py", line 21, in function_timer
    value = func(*args, **kwargs)
  File "/Users/kkanev/projects/gkeep-sync/sync_note.py", line 106, in sync_down
    keep.sync()
  File "/Users/kkanev/.local/share/virtualenvs/gkeep-sync-BXeQRjV-/lib/python3.7/site-packages/gkeepapi/__init__.py", line 850, in sync
    changes = self._reminders_api.list()
  File "/Users/kkanev/.local/share/virtualenvs/gkeep-sync-BXeQRjV-/lib/python3.7/site-packages/gkeepapi/__init__.py", line 458, in list
    json=params
  File "/Users/kkanev/.local/share/virtualenvs/gkeep-sync-BXeQRjV-/lib/python3.7/site-packages/gkeepapi/__init__.py", line 228, in send
    raise exception.APIException(error['code'], error)
gkeepapi.exception.APIException: {'errors': [{'domain': 'global', 'reason': 'backendError', 'message': 'Backend Error'}], 'code': 503, 'message': 'Backend Error'}

Reproduce this "Backend Error" and find a solution that doesn't shout down the server.

@kanevk kanevk added the bug Something isn't working label Jan 23, 2020
@kanevk kanevk self-assigned this Jan 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant