subdavis / kobo-book-downloader

A tool to download and remove DRM from your purchased Kobo.com ebooks and audiobooks.
https://pypi.org/project/kobodl/
The Unlicense
347 stars 33 forks source link

Error: 403 Client Error. Authorization flow is broken. #80

Closed tioui closed 2 years ago

tioui commented 2 years ago

Hi, I try to connect the kobodl to Kobo API using the new Capcha mecanism. It seems to found everything it need to connect, but when actually opening the API, it receive a 403 Client Error. I have attached the log file (without my credential of course).

kobo_error.log

Desktop:

subdavis commented 2 years ago

Yes, as you've noticed, Kobo has broken authentication again.

This is related to https://github.com/TnS-hun/kobo-book-downloader/issues/19

I spent some time trying to figure this out yesterday but I was unsuccessful. Adding some headers (Origin, Referrer, Host) to the auth request got me from 403 to "request hangs forever" so there's clearly something there.

tioui commented 2 years ago

And I presume that it is not possible to see what headers the Kobo Android App is using? It is probably encrypted.

subdavis commented 2 years ago

Workaround

For now, this tool is again broken. See the aternatives at the top of the readme for a different, better way to get your books.

https://github.com/subdavis/kobo-book-downloader#alternatives-to-kobodl=

TnS-hun commented 2 years ago

This change has fixed the issue for me.

tioui commented 2 years ago

The fix worked. I created a Pull request for the fix.

tioui commented 2 years ago

Workaround

For now, this tool is again broken. See the aternatives at the top of the readme for a different, better way to get your books.

https://github.com/subdavis/kobo-book-downloader#alternatives-to-kobodl=

Not usable for me because I only have audiobooks on my Kobo account.

subdavis commented 2 years ago

Fixed in #81

Release in 0.9.1