-
Notifications
You must be signed in to change notification settings - Fork 3k
413 Request Entity Too Large #914
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
Comments
I'm having the same issue. |
same issue when try to upload iso to proxmox |
Hi, I have found a solution. you can enter client_max_body_size in the costome file server_proxy.conf, then it works. You can read here where and how to create the file. |
I went into NPM docker files, I added the server_proxy.conf file and added this line: It still doesn't work. I also tried adding it to seafhttp like the picture above and that didn't work either. I still get 413 error. |
I have the same issue |
I have now tried this in all sorts of ways, and it never works. Nothing seems to change the NPM behavior. I thought it was something to configure on Seafile's side, but I tried it with different webdav servers and all of them will return 413. There is no way to fix this. Seems like there is something hardcoded in NPM. |
There’s a nothing to work with it. I should have to switch to Haproxy because I have a Client. |
Having the same issue. |
i found out the issue. it's not nginx. it's cloudflare. they have 100mb limit. nothing you can do. |
I don’t have CloudFlare, I have different clients with they own hosting so it’s nginx , |
oh ok! then please let us know if you come up with anything. I've tried everything i could think of. |
None of above solutions worked for me. |
app.use(BodyParser.json({ limit: '50mb' }))
app.use(BodyParser.urlencoded({ limit: '50mb', extended: true })); |
This solved my problem. Koa reported the same error, which led me to mistake it for nginx. |
Could you please let know where I can do it . |
Could you explain me the step to reproduce |
import express from "express";
const app = express();
app.use(BodyParser.json({ limit: '50mb' }))
app.use(BodyParser.urlencoded({ limit: '50mb', extended: true })); |
This absolutely worked for me. Make sure you don't have any other servers between the client and your application (CF, another nginx server between NPManager and your app for hosting static files, etc.) and that your application itself is configured to allow large requests. |
Worked for me. I realised I had another proxy server in front of NPM. So I updated the |
It works! I pushed a giant (13GiB) docker container image to harbor via nginxproxymanager as a reverse proxy service. I did it. |
I have the same issue, setting client_max_body_size 0; in the advanced tab does not help. |
@jeffryjdelarosa @ymoona are you guys sure that there's nothing else between your client and the destination, including the destination itself, that would be blocking too large requests? If you don't know, and don't have an easy way of telling, you can try to use the HTTP |
No it's not. because it's my own Server, I've test it without proxy, I mean by VPN and do it direct to IP. and Ngnix are blocking the Large Request and evemore there's some request that can take later longer and ngninx stop it or cancel that request. |
@jeffryjdelarosa hang on, you're not actually getting a 413 HTTP status code, but just a connection closed error? That doesn't seem to be related, but regardless - what is the size of the upload you're making and how long does it take before you get the error? |
I'm quite sure there is nothing else in between. But I'll use the trace to see if that explains something.
I'll check more. |
What Docker Image do you run? linuxserver.io image? |
Hey, The error is shown in Immich as following: |
In my case I got it working with the following settings: |
@PrieserMax Thank you very much for the solution. Worked like a charm for me. I use Treunas Scale, Nginx Proxy Manager and Immich. I had this error while importing my photo library with immich-cli:
When the immich-cli tried to upload a very large video file the program was throwing an error. This is my Custom Nginx Configuration in NPM, that resolved the issue:
|
This is indeed working. Thank you Sir
|
This might help someone: I got this error when I was sending POST data with a GET request to Nginx, through HAProxy, to a Node.js app. I suspect HAProxy was the one complaining as I'd recently added it into the mix, which caused an automated test (where I'd forgotten some POST data in a request that had changed to a GET) to start failing. I removed the POST data and the error went away. The following caused the error:
|
These changes helped me avoid the 413 Error, but now I get a 'Network connection lost' error when uploading large files. |
I was able to solve this for one of my sites (the only required this setting) by creating
|
Checklist
Have you pulled and found the error with
jc21/nginx-proxy-manager:latest
docker image? YesAre you sure you're not using someone else's docker image? Yes
If having problems with Lets Encrypt, have you made absolutely sure your site is accessible from outside of your network? Yes, but not related
Describe the bug
File uploads trigger
413 Request Entity Too Large
Setting the advanced config
client_max_body_size 100m;
takes no effect and the problem persistsTo Reproduce
Steps to reproduce the behavior:
client_max_body_size
Expected behavior
client_max_body_size
would take effect and allow the upload as it does with regular nginxScreenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: