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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Note missing from device #4

Closed
NoelDeMartin opened this issue Oct 16, 2021 · 2 comments
Closed

Note missing from device #4

NoelDeMartin opened this issue Oct 16, 2021 · 2 comments

Comments

@NoelDeMartin
Copy link

I've been using Hyperdraft for a while and so far it is working great :).

Recently I noticed a note I have in my computer does not appear in my phone. Just to test, I tried creating a new note in both devices, and they appeared correctly in the other device. So there is something about this particular note that is keeping it from syncing. I created it some days ago and I have updated it multiple times since.

Let me know how can I debug to give you more information. I suppose the issue is that the note is only kept locally, fortunately it's on the desktop device so I can inspect some network request or indexedDB/localStorage if needed.

@rosano
Copy link
Owner

rosano commented Oct 16, 2021

Seems like you may have found this remotestorage.js bug:

I think at some stage it syncs but doesn't cache the object somehow, and fails to ever fetch again. It seems also like this doesn't happen on a fresh start but after using it 'for a while' as you mentioned, which complicates replicating the issue.

Anyway, I'm glad you've been using Hyperdraft and also sort of glad you found this. I suspect that rather than being 'kept locally', it has been synced to the server, but for some reason fails to add to other devices (you can try signing in via a private tab to confirm if it's on the server). At the moment, the only solutions I'm aware of are:

  • sign out, refresh, sign in
  • when the document syncs to the new device, 'touch' it by editing something to make sure it stays (🙄)

Unfortunately this problem exists in all my apps when using remoteStorage. I thought it was because I use Safari, but it seems like it happens with Firefox as well, perhaps less often. Very mysterious and hard to track down. Maybe share your experience in those threads?

@rosano rosano closed this as completed Oct 16, 2021
@NoelDeMartin
Copy link
Author

Hm I see, it reappeared when I logged out/logged in in the mobile device. To be frank, I can't share a lot more than it happened in Chrome in an Android phone. Seeing that thread it seems like it's not something environment specific, so I'll just leave it here (if anyone from that thread ever wants to dig deeper they'll see this linked on the threads given that you mentioned them).

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants