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

AnkiHubRequestError: AnkiHub request error: 503 Slow Down #574

Open
sentry-io bot opened this issue Apr 26, 2023 · 1 comment
Open

AnkiHubRequestError: AnkiHub request error: 503 Slow Down #574

sentry-io bot opened this issue Apr 26, 2023 · 1 comment

Comments

@sentry-io
Copy link

sentry-io bot commented Apr 26, 2023

Sentry Issue: ANKIHUB_ADDON-2A0

AnkiHubRequestError: AnkiHub request error: 503 Slow Down
(9 additional frame(s) were not displayed)
...
  File "concurrent.futures._base", line 438, in result
  File "concurrent.futures._base", line 390, in __get_result
  File "concurrent.futures.thread", line 52, in run
  File "1322529746/ankihub_client/ankihub_client.py", line 377, in _zip_and_upload_assets_chunk
    self._upload_file_to_s3_with_reusable_presigned_url(
  File "1322529746/ankihub_client/ankihub_client.py", line 404, in _upload_file_to_s3_with_reusable_presigned_url
    raise AnkiHubRequestError(s3_response)
@RisingOrange
Copy link
Collaborator

RisingOrange commented Apr 26, 2023

From what I saw on Sentry this error can happen in theses situations:

  • when uploading images - this is done in multiple threads and apparently it's sometimes too fast and S3 responds with HTTP 503
  • when multiple errors happen short after another in Anki (they might be caused by our add-on, but our add-on is also reporting errors that weren't caused by it to Sentry), the event is sent to sentry each time and Sentry responds with HTTP 503

#569 should help with the first type of situation, because it makes it so that S3 requests are retried on failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant