Request Size / Limits

Update: Error was not caused by Caddy. Sorry :pensive:

Hi,

I’m using Caddy (0.10.6) as a reverse-proxy for a backend http service:

https://example-app.example.com:8443 {
gzip
log stdout
errors stdout

limits 1GB

proxy / backend:5000 {
transparent
websocket
}

}

However uploading just a 9MB file will trigger HTTP 413

I tried to specify Limits globally, I also tried to set head and body sizes, nothing worked. I also get no error message, only the request log with status 413.

proxy_1 | 172.18.0.1 - - [25/Aug/2017:17:02:40 +0000] “POST /api/endpoint HTTP/2.0” 413 45

Any idea?

There’s no error in the logs because 413 is a client-side error. Are you sure the backend service isn’t returning 413?

If you have Go installed, would you mind doing a little tinkering to figure out where the issue is?

Sorry, my bad.

I can confirm the backend service was implemented using a framework that has a default size limit of 8MB.

Caddy works fine.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.