05-30-2023, 07:56 AM | #1 |
Connoisseur
Posts: 95
Karma: 28346
Join Date: Mar 2023
Device: Kobo Libra 2, Boox Leaf 7"
|
413 Request Entity Too Large
I am running Calibre content server on Windows. I have set Max allowed size for files uploaded to the server option to 500mb. But I cannot upload a 80mb pdf, getting the 413 error.
I found a thread here about this https://www.mobileread.com/forums/sh....php?p=4105048 that says But I don't understand how to do this. I'm on Windows 10. |
05-30-2023, 10:02 AM | #2 |
creator of calibre
Posts: 44,409
Karma: 23977332
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
First try to do the upload locally from the same computer as the server via http://localhost:8080 if that works you know its not comeing from the calibre server. Then it is likely coming from some other server/firewall or similar between the client computer and the server computer.
|
05-31-2023, 12:55 AM | #3 | |
Connoisseur
Posts: 95
Karma: 28346
Join Date: Mar 2023
Device: Kobo Libra 2, Boox Leaf 7"
|
Quote:
I was able to upload the file normally accessing via localhost and even through the direct IP from another device instead of the domain name. So that told me it wasn't a Calibre problem but something with my reverse proxy setup. I am not good at that stuff but a friend helped me figure it out. He helped me set it up behind nginx, and he made sure to set client_max_body_size to a large size but it still wasn't working. What finally seemed to fix it was adding the proxy_set_header settings below: Code:
location / { proxy_pass http://<ip redacted>:<port>; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Scheme $scheme; proxy_set_header X-Script-Name /calibre; } |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
413 Request Entity Too Large | georgehuang | Server | 2 | 03-22-2021 12:00 AM |
recommendation request: need large screen e-reader, ideally waterproof, circa $500 | al2244 | Which one should I buy? | 7 | 03-20-2020 10:15 PM |
Entity not viewed in ADE | surendraps | Writers' Corner | 1 | 10-26-2010 08:12 AM |
The entity name must immediately follow the '&' in the entity reference | digireads | Calibre | 3 | 06-08-2010 10:31 PM |
Unutterably Silly Most users ever online was 1,413, 01-23-2005 at 10:03 AM | daffy4u | Lounge | 5 | 08-29-2008 11:06 PM |