-
-
Notifications
You must be signed in to change notification settings - Fork 558
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
Persistency not working or db not connecting/replicating #315
Comments
Just came back and updated my npm dependencied, and that's what I'm experiencing too. I can write to a db, and read the values I wrote to it. But if I reload the page and Current dependencies are:
|
Thanks for reporting the issue @eusthace! And welcome back @cristiano-belloni! This sound weird and should work as expected. Can either of you share the full project where this is happening so that I could take a look? This happens in the browser, right? Could you run the browser examples and see if you're able to reproduce the problem with that? |
I'll still check browser examples but here's a repo with a repro of the problem – although I think I might be doing something wrong. https://github.com/thiagodelgado111/orbitdb-persistency-reproduce |
Looking at the browser example, using docstore I guess it has something to do with caching / |
Thank you everyone for looking into this! ❤️I found the bug 👍😄 It is indeed the case in the browsers that the persisted db doesn't load. This was due to an early return in the local cache module (due to API differences between browser leveldb and nodejs leveldb). The good news is, the db does get persisted (as expected), it just wasn't loaded correctly. This will be fixed with #316 and once it's in, I'll publish a new version to npm. Will post here when it's published. |
Published to npm as 0.19.4. Let us know, and re-open the issue, if you're still experiencing problems! |
Hi Guys,
I've been trying to use orbit-db without success (angular 5 project), not sure why, but persistency is not working and db is not triggering replicateX events.
Here is my code:
The events triggering are ready and write, but the db is always empty after reload the page.
Any help, please?
Thanks, E
The text was updated successfully, but these errors were encountered: