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

403 Client Error + Failed to execute script #112

Open
aydenjett opened this issue Mar 29, 2024 · 1 comment
Open

403 Client Error + Failed to execute script #112

aydenjett opened this issue Mar 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@aydenjett
Copy link

aydenjett commented Mar 29, 2024

Describe the issue
I cannot download any audiobooks from my library. I have reinstalled/updated kobodl and python, removed my user and re-added/authorized, removed extra logins from my kobo account so only the rakuten email is left, closed all browsers when trying to download, and tried --get-all instead of specific book ids.

To Reproduce
Steps to reproduce the behavior:

  1. Download kobodl
  2. Copy file into Windows Powershell
  3. Add "book get " and hit enter
  4. See both errors "HTTPError: 403 Client Error: Forbidden for URL" and "Failed to execute script 'main' due to unhandled exception!"

Expected behavior
Book begins to download to chosen directory

Screenshots
Screenshot 2024-03-29 175909

Desktop (please complete the following information):

  • Windows 11
  • Python 3.12.2
  • Kobodl Version 0.9.3

Additional context
I downloaded two audiobooks the normal way just over a month or or so ago and haven't really touched my desktop since, so I'm not sure what's wrong or different now. I feel like I've looked everywhere online and tried every fix I found. I also am incredibly new to github/python/code (literally only got into it for this app), so please be patient if I don't understand something right away. Thanks in advance!!

@aydenjett aydenjett added the bug Something isn't working label Mar 29, 2024
@seeba8
Copy link

seeba8 commented Apr 10, 2024

I can reproduce your error exactly. Interestingly, I was able to download a book using the docker image provided with the following invocation:

 sudo docker run --rm -it --user $(id -u):$(id -g) -v /home/me/kobodl:/home/downloads  -v /home/me/.config:/home/config   ghcr.io/subdavis/kobodl   --config /home/config/kobodl.json book get {bookid} --output-dir /home/downloads

If you feel like diving into a docker setup, this might be a viable workaround for you.

Edit: I forked the repo and updated dependencies until I got it to build with python3.11 on Windows 11. With that version, I was able to download my audiobooks again. I have not tested any other features, so I am hesitant to create a merge request with my changes. FWIW though, here's the commit: seeba8@0a2a327

In theory, I could provide you the .exe it built, but I have no idea how to get it to you, and like I said, I have not tested any of the other features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants