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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

(AjaxQueue): fix the Reconnect link not showing after server error 500 #220

Merged
merged 1 commit into from
Nov 10, 2021

Conversation

fabd
Copy link
Owner

@fabd fabd commented Nov 10, 2021

This shouldn't happen... but the server does throw a HTTP 500 sometimes if the database is too busy or for whatever reason (shared server).

In those cases a mishandling of the error caused the "Oops! Error XYZ (Reconnect link)" dialog to not show up... therefore user is not able to proceed with the review if the server had a hiccup. bad bug! 馃サ

This happens because server can issue a HTTP 500 with RTK-Error header with more information. However if the error is not caused by our exception the header doesn't exist and sErrorMessage is undefined, not null.

This shouldn't happen... but unless showing the "Reconnect" link
(#uiFcAjaxError div in flashcard review page), then the AjaxQueue is
frozen -- and the review will never recover if the server had a hiccup.
@fabd fabd added the bug label Nov 10, 2021
@fabd fabd merged commit 7796db9 into master Nov 10, 2021
@fabd fabd deleted the fix/flashcard-review-reconnect--doesnt-show branch January 6, 2022 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant