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
Deal with timed out/failed requests #265
Comments
It appears that |
Already handling responses where the response wasn't a 200 code is something I should have done already 😅. This is a good idea. |
Do you have any code for this? otherwise i'll start working on it. This + hopefully I can build a new |
I didn't go through all the functions. I just included it for tags (https://github.com/edditler/archivy/blob/main/archivy/static/component/frontmatter_tags.js#L33-L47) and the content for now (https://github.com/edditler/archivy/blob/main/archivy/templates/dataobjs/show.html#L286-L327 Surprisingly, a timeout of 3s was not always long enough, and even with 10s, I get sporadic alerts. It's better to know than to accidentally close the tab, but it's not a great solution for the problem itself (that edits are easily lost). |
e429e1c works on this |
When saving a note, one of the toolbar icons in the editor will turn into a checkmark - indicating success - even if the response was 500 or timeout.
Archivy should handle the responses to
fetch
calls correctly.The text was updated successfully, but these errors were encountered: