-
-
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
HTTP status code 403 on import #105
Comments
Interesting. I haven't run into that issue so far. Is this the entire error message? Looking at the code I fail to see how Can you try restarting Calibre in debug mode (Right-click preferences, then click "Restart in debug mode"), then import the ACSM again, then post the full log? Does this only happen with ACSMs from this particular source or does it happen with all of them? Can you test ones from Adobe's sample library? |
The full log in debug mode:
These books all come from Libri GmbH and are sold by local bookshops. This is an interesting connection as fulfillment seems to work with Adobe's sample library (I do still get some error output but that seems unrelated).
in this line, right? |
I'm getting the same error using Calibre 7.18 and DeACSM 0.0.16 on a book purchased from https://www.thalia.de/. I imported an .acsm file via Drag & Drop, this yields the debug log:
I can reproduce this at will, let me know if you want me to try a patched version or anything. |
Looks like Thalia added Cloudflare in front of their servers and Cloudflare's WAF is probably detecting some kind of small difference in how ADE / legit adobe clients access this page and how my plugin does it. I can reproduce it with a free DRM'd book from Thalia. |
Issue should be fixed with the latest commit, please test again. |
I can confirm this fixes the issue, thank you! |
Wow, amazingly fast turnaround! 🚀 Can confirm, the build at https://github.com/Leseratte10/acsm-calibre-plugin/actions/runs/10907951375#artifacts fixes the issue. Thanks! ❤️ |
Hello, I'm experiencing a similar error and am totaly unexoerienced with building software. So my question is: How can I use the build in calibre, which seems to solve the problem described here? Currently I'm on Ubuntu Ubuntu 24.04.1 LTS, Calibre 7.19 with ACSM Input v0.1.0. |
No need to build the plugin yourself, you can just go to the link https://github.com/Leseratte10/acsm-calibre-plugin/actions/runs/10907951375#artifacts then scroll to the bottom and click the "calibre-plugins" link under Artifacts. You'll get a ZIP file with two other ZIP files in it, the "calibre-plugin.zip" file can be imported into Calibre like any other plugin. |
Thank you very much for the fast reply. That's fantastic! |
Yes. There's issues with updating / downgrading between 0.0.16 and the first beta versions of 0.1.0 (which is one of the reasons why 0.1.0 is still not released ...) but updating / downgrading in-between different 0.1.0 versions is fine. |
Awesome, it worked:
Thank you very much! |
@Leseratte10 After installing the version of the plug-in linked in this thread, I'm unfortunately getting the same error when trying to import a book purchased from Kobo. The sample books from the Adobe Library do work. Here is the debug log output:
|
Dang it. I wonder if there's some differences between how Thalia does that detection and how Kobo does it, or if they're actively trying to block this plugin ... I'll take a look. |
I just got a free book with Adobe DRM from kobo.com and I was able to download it without issues with the updated plugin. Did you restart Calibre properly after updating the plugin to make sure it's using the new version? Can you try if you can reproduce the issue with one of the free books with DRM and then send me a link to the exact book you tested? I don't think they'd have book-dependant differences for things like these, but you never know ... |
@Leseratte10 Thanks for the response. I haven't had a chance to try what you asked for yet, but I did want to report something interesting. I bought the book from the UK Kobo store, with a UK payment method. However, I'm currently physically located in another country. When I switched on a UK VPN and tried to add the book, I got a completely different error:
To me, that seemed to indicate that the ACSM had expired, so I downloaded a new one. Without the VPN, I get the same traceback as idnicated in my previous comment. But with the VPN active...
In short: it seems that my non-UK IP is either triggering the sort of protection the plug-in can't deal with, or Kobo don't allow books purchased in the British store to be downloaded overseas. The latter seems unlikely, given that I can read the book online and in their own apps, but I haven't tested Digital Editions itself to verify. |
Hello, I had a very similar error when trying to upload two acsm files via Drag & Drop that I bought from https://editora.fgv.br/ Yes, I used the version from build on GH actions
|
Bug description
Recently I have noticed that when importing acsm files I only get an HTTP status code 403. This does not seem to be book-specific as I have reproduced this with a book that used to work.
I registered with my Adobe account and this activation was reported to be successful. I also confirmed that the same acsm file can be imported with my account on another device with Adobe's own software and also with the utils provided by the libgourou project (which I have registered only afterwards, so this does not seem to be an issue with device limits either).
The default stack trace:
Operating system
Linux
Which version of Calibre are you running?
7.16
Which version of the ACSM Input plugin are you running?
build from master (6c29c42)
Import type
Clicking the 'Add books' button in the menu bar, Dragging-and-Dropping the ACSM file into the Calibre window
Further information
No response
The text was updated successfully, but these errors were encountered: