esp32_nat_router
esp32_nat_router copied to clipboard
Header fields are too long for server to interpret
- Flashed firmware
- Connected to
ESP32_NAT_Router
AP - Setting STA Settings: SSID=foobar Password=[63 ASCII chars]
- 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?
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.
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
Does ist help to increase HTTPD_MAX_REQ_HDR_LEN in the configuration?
I changed HTTPD_MAX_REQ_HDR_LEN to 1024 rebuild the project and now it is working. Thx for the fast support
@martin-ger How do I exactly do that?
Please help me, how to build project?
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: @.***>
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.