mirror of
https://github.com/appy-one/acebase-client.git
synced 2026-05-24 22:01:18 -06:00
[GH-ISSUE #13] There is a problem with replication #12
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/acebase-client#12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @topapp2030 on GitHub (Aug 1, 2021).
Original GitHub issue: https://github.com/appy-one/acebase-client/issues/13
Originally assigned to: @appy-one on GitHub.
Hello!
There is a problem with replication
The situation in which it occurs, if the port is closed in the server
Data has been sent from the client
Then a minute later, the data will disappear from the client device
Even if the port is opened after that, the data will not arrive
I hope my explanation is clear or tell me to explain to you in a video
This is the server code :
This is the client code:
@topapp2030 commented on GitHub (Aug 1, 2021):
@appy-one I think the problem is with the sending order
It should check if the server port is open
Because here the error occurs and deletes the data from the client
@appy-one commented on GitHub (Aug 5, 2021):
It's true that sync will remove pending mutations upon failure (I will change this behaviour in a future version), but sync only runs after it has connected to the server (and signed in) so that can't be the issue.
I don't see any data retrieval code in your samples so it is kind of hard to see what is going wrong. I do see you are not waiting for the
signInto complete so that might be part of your issue - your server config requires authentication so anything you do before signing in will fail@appy-one commented on GitHub (Aug 17, 2021):
Let me know if this is still an issue, I will close it otherwise