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

Kobo Libra Colour, received non-200 status from Readwise. Code 400. Also showing store bought highlights when I have no store bought books. #125

Open
a346534545 opened this issue Jun 6, 2024 · 3 comments

Comments

@a346534545
Copy link

I have added a few highlights to locally loaded .kepub books, but October is not uploading them.

image


System Details
  • Version: v1.9.0-beta1
  • Platform: windows
  • Architecture: amd64
{"device_id":"00000000-0000-0000-0000-000000000390","level":"info","msg":"Found an attached device","time":"2024-06-07T00:01:44+01:00"}
{"device_id":"00000000-0000-0000-0000-000000000390","level":"warning","msg":"Found a device that isn't officially supported but will likely still operate just fine","time":"2024-06-07T00:01:44+01:00"}
{"device_id":"00000000-0000-0000-0000-000000000390","level":"info","msg":"Found an attached device","time":"2024-06-07T00:01:44+01:00"}
{"device_id":"00000000-0000-0000-0000-000000000390","level":"warning","msg":"Found a device that isn't officially supported but will likely still operate just fine","time":"2024-06-07T00:01:44+01:00"}
{"batch_count":1,"highlight_count":0,"level":"info","msg":"Successfully parsed highlights","time":"2024-06-07T00:01:48+01:00"}
{"level":"error","msg":"Received a non-200 response from Readwise","response":"{\"detail\":\"highlights not provided\"}","status_code":400,"time":"2024-06-07T00:01:48+01:00"}
{"batch_count":1,"highlight_count":0,"level":"info","msg":"Successfully parsed highlights","time":"2024-06-07T00:02:06+01:00"}
{"level":"error","msg":"Received a non-200 response from Readwise","response":"{\"detail\":\"highlights not provided\"}","status_code":400,"time":"2024-06-07T00:02:06+01:00"}
{"level":"info","msg":"Shutting down. Goodbye!","time":"2024-06-07T00:02:08+01:00"}

@marcus-crane
Copy link
Owner

Hey @a346534545,

Ah yes, there's a bug around support for highlights from store-purchased books. As you mentioned, you don't have any but the bug sometimes causes October to think you do have some.

You should be able to upload your highlights if you go into Settings and tick the "store purchased books" toggle.

I still need to get around to investigating what causes the bug and release a fixed version

Sorry about that and thanks for the heads up

@a346534545
Copy link
Author

a346534545 commented Jun 7, 2024 via email

@marcus-crane
Copy link
Owner

Hi @a346534545,

Hmm, it seems you have the same issue as #124 which was also from a user with a Kobo Libra Colour.

I don't own a Libra Colour myself but if you're up for it, I can try to replicate the issue using a copy of your Kobo's database which should help me figure out if there is something slightly different with newer Kobos.

One important thing to note, and the reason you shouldn't share your database publically, is that if you're logged into a Kobo account (I forget if it's a hard requirement), there is a session cookie for your account stored within your database. Technically, it could be used to access your Kobo account so you should be aware of that.

If you're fine with that, you can find your Kobo database on Windows by navigating to "This PC" and then double clicking "KoboeReader" (assuming your Kobo is plugged in)

You can then navigate to ".kobo" and you should see a file called "KoboReader.sqlite" which contains your highlights and bookmarks as well as metadata about books (what books you've loaded up) but not the actual books themselves.

If you send that through to [email protected] (again, don't share it publically!), I can have a look at where things are going wrong. Short of buying a Kobo Libra Colour myself, I can't really do much without some help from existing users unfortunately. That and buying a Libra Colour doesn't guarantee that I'll get one that reports a malformed database on startup, although it can't be very malformed if you're still able to use the device fine.

It does seem that occasionally Kobo's will report that on first boot and then sometimes work when restarted after the first time or something like that but I haven't done extensive testing by any means.

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