You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WebCamServer example build on espressif32 4.2.0 platform for PlatformIO will causes "Header fields are too long for server to interpret" with Chrome browser.
This is because the value of CONFIG_HTTPD_MAX_REQ_HDR_LEN in the sdkconfig adopted by the arduino-esp32 package imported by PlatformIO is 512. It has already been fixed in idf-release/v4.4 and has changed to 1024. On the other hand, platformio-espressif32 4.2.0 (based on arduino-esp32 2.0.2) has not reflected the fix yet.
And even if you changed the sdkconfig directly to the CONFIG_HTTPD_MAX_REQ_HDR_LEN value to 1024, that would cause a new and different problem. sdkconfig is for esp-idf, and it contains the configuration that the arduino-esp32 core assumes. The platformio-espressif32 arduino framework is still arduino-esp32 2.0.2, so changing CONFIG_HTTPD_MAX_REQ_HDR_LEN=1024 alone cannot be a workaround. In addition, the following workaround applying arduino-esp32 2.0.3 release with platformio.ini may not be sufficient. (Its master is further ahead.)
I expect that this fix will propably be reflected in the next update turn of platformio-espressif32. Until the fix, if you are building a sketch with PlatformIO that relies on the HTTP Server component of ESP-IDF to handle the camera driver, I would still recommended adopting esp-idf 3.3.5 as your platform.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
WebCamServer example build on espressif32 4.2.0 platform for PlatformIO will causes "Header fields are too long for server to interpret" with Chrome browser.
This is because the value of CONFIG_HTTPD_MAX_REQ_HDR_LEN in the sdkconfig adopted by the arduino-esp32 package imported by PlatformIO is 512. It has already been fixed in idf-release/v4.4 and has changed to 1024. On the other hand, platformio-espressif32 4.2.0 (based on arduino-esp32 2.0.2) has not reflected the fix yet.
And even if you changed the sdkconfig directly to the CONFIG_HTTPD_MAX_REQ_HDR_LEN value to 1024, that would cause a new and different problem. sdkconfig is for esp-idf, and it contains the configuration that the arduino-esp32 core assumes. The platformio-espressif32 arduino framework is still arduino-esp32 2.0.2, so changing CONFIG_HTTPD_MAX_REQ_HDR_LEN=1024 alone cannot be a workaround. In addition, the following workaround applying arduino-esp32 2.0.3 release with platformio.ini may not be sufficient. (Its master is further ahead.)
I expect that this fix will propably be reflected in the next update turn of platformio-espressif32. Until the fix, if you are building a sketch with PlatformIO that relies on the HTTP Server component of ESP-IDF to handle the camera driver, I would still recommended adopting esp-idf 3.3.5 as your platform.
Related issue: espressif/arduino-esp32#5969
Beta Was this translation helpful? Give feedback.
All reactions