-
Notifications
You must be signed in to change notification settings - Fork 9
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
Delete tag sync problem - sync_conflict and the web client will keep retrying #87
Comments
When this happens, I can sign out and sign in again, and this will stop. |
I don't use tags so I never had this issue. |
I reproduced the issue
I didn't reproduce this error on https://github.com/standardnotes/self-hosted, only I didn't see the root cause yet. It seems there are new fields in the items' payload. |
In fact, when an item (tag, note, whatever) is deleted by setting |
I am also regularly hit by this issue. I noticed two scenarios, where this happens:
It seems as if the client cannot sync one item and therefore gets in the loop with POSTing to |
I tried several things to debug this issue but I don't figure out what happens here. The inputs/outputs seem OK compared to the official app, I didn't found anything in the source code (NodeJS is not very readable). I tested several versions of desktop binaries and I found when the issue started:
The problem is that several releases use the same commit so it's impossible to see what happened between theses releases. Maybe some SNJS updates. |
I might have found a new hint for the root cause of this issue (although not detailed enough to prove or even solve anything)... Disclaimer first: I don't know anything about SNS/SQS and how they are used in an application architecture, especially within the frontend. Standardnotes changed its self-hosting setup to be as follows:
I welcome this change compared to the previous resource-hungry setup and gave it a try. At first, I didn't configure localstack correctly, thus not having the SNS/SQS service running. In this stage, I saw the client POSTing several times per second to the backend and creating a new version of the same note each time. After fixing the localstack setup, this problem did not occur anymore. I didn't do any detailed research about how SNS/SQS is used in the frontend. But as this behavior looked similar to this issue here, I suspect that it might relate somehow. As the Standardnote git-repo is somehow screwed, I couldn't search for any commit message including SNS/SQS. |
To repro
Example request:
response:
Looks like it is from
standardfile/internal/server/service/sync_20190520.go
Line 147 in e925f8a
The text was updated successfully, but these errors were encountered: