-
Notifications
You must be signed in to change notification settings - Fork 24
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
Books disappear from booksIDsMap
in data.json
#68
Comments
Something that may be helpful is a button/action to re-add books to |
I can confidently say that Obsidian Sync is now the primary culprit of this bug after #67's changes which deleted this plugin's code which removed |
Got some info from the Obsidian team on how to access Sync's status. It's an internal API, though they note that it's accessible and has never changed. I'm gonna make a personal branch and do some explroing. Plan is to basically wait for Sync to complete (if the plugin is enabled), then kick off Readwise's sync. I'll also add a fallback in case Obsidian's sync is not present, failing, or non-responsive. |
I just noticed a lot of books disappearing from |
Shouldn't cause any issues unless you need to resync them from Readwise. |
More evidence that this is almost definitely a race condition between Obsidian Sync and Readwise syncs: https://www.reddit.com/r/readwise/comments/1f79gfk/comment/llj533w/ tl;dr:
This is extremely similar to my own setup (multidevice, different usage) with the same problems presenting. I haven't had time to try exploring like i mentioned in this comment, but i'm hoping to find time soon. |
@rvjosh very interesting! can you speak more to your setup? like:
|
Sure thing.
|
Hmm. After thinking a bit, @rvjosh I would like you to keep an eye out for new occurrences of this issue after v2.1.1 (current version). Rationale: the changes from #67 made it so the plugin no ever longer deletes entries from Given that you're using your own syncing solution via git, I think there's a low likelihood that it's caused by some sort of conflict resolution when manually pulling/syncing between your devices (though, hey, it's possible given that Obsidian Sync may use a similar algorithm to determine conflict resolution, albeit with additional sync logic). So: if the issue occurs for you again, it would mean either (1/less likely) there's some serious oversight in the plugin code that is removing entries, (2/more likely) you're clobbering your plugin data during the git sync/conflict/etc process somehow. That said, I'm optimistic that you'll have more luck with the removal of the booksIDsMap-entry-deleting code from #67/v2.1.1. Keep this thread posted if that isn't the case :) |
Will do, thanks! |
Over time, books seem to disappear at random form
booksIDsMap
indata.json
.Underlying cause is unknown.
Possible suspects:
Settings > Sync > Settings version history - View
shows the diffs betweendata.json
changes)MITIGATION: You can fix this locally by doing a Readwise sync in a clean vault and then copying the
data.json
content from the clean vault into your problematic vault. This is a pretty expansive set of instructions for doing that.The text was updated successfully, but these errors were encountered: