janeczku / calibre-web

:books: Web app for browsing, reading and downloading eBooks stored in a Calibre database
GNU General Public License v3.0
12.01k stars 1.28k forks source link

Epubs become corrupted during upload #3007

Closed freddieFishCake closed 4 months ago

freddieFishCake commented 4 months ago

Describe the bug/problem

Epub files become corrupted during the upload process.

To Reproduce

Steps to reproduce the behavior:

  1. Upload an epub, fetch metadata, save.
  2. Navigate to the uploaded book in Books view.
  3. Click the read online button, wait untli the new browser tab opens, then see the error mesage: "XML Parsing Error: not well-formed Location: https:///read/749/epub Line Number 1, Column 3:lu ό"

Logfile

[2024-02-21 19:33:09,902] ERROR {cps.metadata_provider.amazon:129} 503 Server Error: for url: https://www.amazon.com/s?k=The+Runaway+Jury&i=digital-text&sprefix=The+Runaway+Jury%2Cdigital-text&ref=nb_sb_noss [2024-02-21 19:33:09,902] INFO {scholarly:96} Getting https://scholar.google.com/scholar?hl=en&q=The%20Runaway%20Jury&as_vis=0&as_sdt=0,33 [2024-02-21 19:33:10,464] ERROR {cps.isoLanguages:59} Missing translation for language name: [2024-02-21 19:33:11,841] INFO {httpx:1027} HTTP Request: GET https://scholar.google.com/scholar?hl=en&q=The%20Runaway%20Jury&as_vis=0&as_sdt=0,33 "HTTP/1.1 200 OK" [2024-02-21 19:34:26,509] INFO {cps.web:1207} Serving book: The Runaway Jury - John Grisham

Expected behavior

Uploaded Epub would be available to read.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context Access is via reverse proxy. The same epub file added to the same database by dragging and dropping into Calibre application is not corrupt, i.e I am confident that te source epub file is valid.

freddieFishCake commented 4 months ago

Update: this turned out to be a DRM issue, I was using the wrong AdobeID. Apologies for the false alarm ;-)