esp32_nat_router icon indicating copy to clipboard operation
esp32_nat_router copied to clipboard

Header fields are too long for server to interpret

Open quantenschaum opened this issue 4 years ago • 8 comments

  1. Flashed firmware
  2. Connected to ESP32_NAT_Router AP
  3. Setting STA Settings: SSID=foobar Password=[63 ASCII chars]
  4. Click connect

The I get Header fields are too long for server to interpret as response.

63 chars is the max password length for WPA2. Is it possible, that the firmware cannot handle this?

quantenschaum avatar Sep 08 '20 09:09 quantenschaum

I had the same problem - I closed the browser tab I had been using, opened a new tab, and browsed to 192.168.4.1 and problem solved. Hope that helps.

korry avatar Sep 09 '20 23:09 korry

having exactly the same issue however my PW is only 20 ASCII characters. When I connect to the new AP i get the following logging on the UART console:

W (16264) httpd_parse: parse_block: request URI/header too long W (16264) httpd_txrx: httpd_resp_send_err: 431 Request Header Fields Too Large - Header fields are too long for server to interpret.

Any idea what can be wrong.closing the browser does not work for me

lecrams avatar Jul 22 '21 13:07 lecrams

Does ist help to increase HTTPD_MAX_REQ_HDR_LEN in the configuration?

martin-ger avatar Jul 22 '21 13:07 martin-ger

I changed HTTPD_MAX_REQ_HDR_LEN to 1024 rebuild the project and now it is working. Thx for the fast support

lecrams avatar Jul 22 '21 14:07 lecrams

@martin-ger How do I exactly do that?

damienwolf07 avatar Jun 30 '22 22:06 damienwolf07

Please help me, how to build project?

axmed2004 avatar Sep 20 '22 10:09 axmed2004

https://github.com/martin-ger/esp32_nat_router#building-the-binaries-method-1---espidf

Am 20. September 2022 12:53:40 schrieb axmed2004 @.***>:

Please help me, how to build project? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

martin-ger avatar Sep 27 '22 14:09 martin-ger

I am facing similar problem as related to uplink Wifi password, that is 63 char long, it just is not saved, will try suggested HTTPD_MAX_REQ_HDR_LEN fix.

Another thing I noticed that there might be some issues with special characters, "+" gets replaced with space(" "). Tried with set_sta and from webpage, both seem to do so.

SoothingVoid avatar Feb 12 '23 20:02 SoothingVoid