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: 401 Unauthorized #575

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

AnkiHubRequestError: AnkiHub request error: 401 Unauthorized #575

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-29B

AnkiHubRequestError: AnkiHub request error: 401 Unauthorized
(9 additional frame(s) were not displayed)
...
  File "1322529746/gui/editor.py", line 60, in _on_suggestion_button_press
    _on_suggestion_button_press_inner(editor)
  File "1322529746/gui/editor.py", line 108, in _on_suggestion_button_press_inner
    open_suggestion_dialog_for_note(editor.note, parent=editor.widget)
  File "1322529746/gui/suggestion_dialog.py", line 93, in open_suggestion_dialog_for_note
    if suggest_note_update(
  File "1322529746/suggestions.py", line 60, in suggest_note_update
    client.create_change_note_suggestion(
  File "1322529746/ankihub_client/ankihub_client.py", line 580, in create_change_note_suggestion
    raise AnkiHubRequestError(response)
@RisingOrange
Copy link
Collaborator

RisingOrange commented Apr 26, 2023

This error should be caught by the central exception handler which should then open the login window and ignore the error. Then the user could login to AnkiHub and the API would not return HTTP 401 anymore.

The Sentry breadcrumbs contain this statement:
The exception handler threw an exception.

It seems that exception handler tried to handle the exception, but an error happened during this process.

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