-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Attempted to save stale version of project #1383
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
Comments
Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already. |
Thanks for reporting! I'm sorry this happened. There's some code to protect you if you have multiple different versions of a sketch open, but there's some bugs with it that have been hard to track down. This has come up in the context of #1337, as to support love collaboration features would involve first upgrading how sketch updates are saved. |
I have done some investigation over this and found that we already have the stale project error handling code. But still no message is displaying, checking where we are going wrong. Will update you soon. |
Got the point causing this issue ( issue is with the axios error handling, axios wrap the server response for error in its own error object check this (https://github.com/axios/axios#handling-errors) , so we need to extract server response for error from the axios error, this problem is in the whole application, will create a pr which will fix all this issues. |
i'm not sure if #1404 fixes this, but it certainly helps!!! |
Uh oh!
There was an error while loading. Please reload this page.
Nature of issue?
Details about the bug:
Chrome Version 80.0.3987.149 (Official Build) (64-bit)
Win 10
Unclear
When I worked on a previously saved sketch, I noticed it cannot be saved. Neither using [Ctrl + s] nor via the menu. Recording network traffic, I saw that the following request failed:

with message
"Attempted to save stale version of project."
Most dangerously, no error is shown. Likely, a user will not notice that the saving failed.
Note: After refreshing the page (and losing any unsaved changes), the sketch can now be saved.
The text was updated successfully, but these errors were encountered: