esp32-cam-webserver icon indicating copy to clipboard operation
esp32-cam-webserver copied to clipboard

Headers too long error when using Apache proxy.

Open easytarget opened this issue 6 years ago • 8 comments

Also happens when I use a simple SSH tunnel, but NOT when i connect from my local network https://github.com/espressif/arduino-esp32/issues/2983 I'd like remote access working...

easytarget avatar Nov 20 '19 14:11 easytarget

I have a similar problem. Accessing from within my network goes well, but when I try from outside using port forwarding... "headers too long..."

GNDeSouza avatar Nov 25 '19 05:11 GNDeSouza

Idem with Nginx 'proxy'

jorgechurriana avatar Feb 09 '20 08:02 jorgechurriana

This is irritating; I spent some time trying to resolve this both via apache configuration, and then by (temporarily) editing the esp32 toolchain to allocate 4x as much space for incoming headers. Neither of these had any effect, unfortunately.

Lack of time, and lack of need (this is nice to have, not essential, for me) mean I have not gone any further. Maybe my priority will change in the future, but for the present I wont do any more work on this unless I am very confident it will succeed.

easytarget avatar Feb 10 '20 12:02 easytarget

Also note this comment: https://github.com/espressif/arduino-esp32/issues/2983#issuecomment-562304008

easytarget avatar Feb 10 '20 13:02 easytarget

Same situation with traefik and file provider (to external server). Oddly, this works with postman and similar apps and it frequently loads when using http rather than https

jumblies avatar Jul 19 '20 21:07 jumblies

also got an error using my tablet with LineageOS 15.1 browser. 'Header fields are too long for server to interpret'

Using Chrome browser on the same tablet worked.

TungstenE2 avatar Sep 29 '20 14:09 TungstenE2

There may be hope for the next esp-ide-core release: https://github.com/espressif/esp32-arduino-lib-builder/issues/52 https://github.com/espressif/arduino-esp32/issues/5969

Waiting for: https://github.com/espressif/arduino-esp32/pull/6174

easytarget avatar Mar 07 '22 08:03 easytarget

For me on nginx this variant works

location /camera { proxy_pass http://1.2.3.4:80; rewrite ^/camera /(.*) /$1 break; proxy_set_header Cookie ""; } location /status { proxy_pass http://1.2.3.4:80; proxy_set_header Cookie ""; } But no controls are working

00svd00 avatar Mar 18 '22 23:03 00svd00