caddy icon indicating copy to clipboard operation
caddy copied to clipboard

Error 411 when using Transfer-Encoding: chunked via reverse proxy over unix-socket & fastcgi

Open mqus opened this issue 2 months ago • 2 comments

Issue Details

I am running Caddy 2.10.2, as a reverse proxy in front of a gitea instance. I also have some git automation using libgit2 which only uses chunked encoding for pushing commits. In the previous version (I ran Caddy 2.8.4), this worked just fine. However in the current version, I get error 411 ("Length Required") when pushing.

I could not see any related logging on the gitea side so I assumed the error code came from caddy. Since I didn't find any related bug requests here, I assumed some mistake on my side, but I then remembered that I had the kinda weird setup of proxying not via ip+port, but rather via unix socket and fastcgi on top, gitea supports this just fine. I didn't have any particular reason for that, so I switched back to the normal setup (localhost+port) and everything just worked again.

I am not sure how a minimal reproduction would look like (and I am still not 100% sure this issue is on the caddy side), so take this bug report with a grain of salt :)

Assistance Disclosure

AI not used

If AI was used, describe the extent to which it was used.

No response

mqus avatar Dec 05 '25 02:12 mqus

Please try with 2.11.0-beta.1, I think it might be fixed.

francislavoie avatar Dec 05 '25 03:12 francislavoie

Thanks for the quick answer! I tried the beta just now and sadly its still there.

mqus avatar Dec 05 '25 21:12 mqus