Aircoookie / Espalexa

Alexa voice control for ESP8266/ESP32 (including brightness and color!)
MIT License
545 stars 137 forks source link

A lot of error message: "_handleRequest(): request handler not found" #102

Open eos1d3 opened 4 years ago

eos1d3 commented 4 years ago

Using current release, I keep seeing a lot of this error repeatedly even I do not enable ESPALEXA_DEBUG.

[E][WebServer.cpp:617] _handleRequest(): request handler not found

This problem may also happen in previous release. What is this error? All devices are all working normally though.

Aircoookie commented 4 years ago

Myself, I have never seen such an error. It seems to merely indicate to not have found a handler for the incoming request and thus calling onNotFound(), which is nornal behavior.

Probably you have a debug level other than None set in the Tools menu. Or it is a built-in debug function of ESPAsyncWebServer you can enable in the library...

eos1d3 commented 4 years ago

I just use EspalexaFullyFeatured example with ESP32 without much change. And I do not use ESPAsyncWebServer.

The beginning is:

include

#ifdef ARDUINO_ARCH_ESP32
#include <WiFi.h>
#else
#include <ESP8266WiFi.h>
#endif
#include <Espalexa.h>

I use PlatformIO, the platformio.ini does not define debug level too:

[env:esp32dev]
platform = espressif32
board = esp32dev
monitor_speed = 115200
framework = arduino
lib_deps =
  Espalexa@247afb17b4

I am using the same EspalexaFullyFeatured file and never saw this error from previous versions of the library. And I do not change it after using latest version. And now I keep seeing this error occurs repeatedly in serial terminal.

Any information I can provide for you to check?

I will try to create a new project with the library to see if the current project has problem.

Below is the compile message:

HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES: toolchain-xtensa32 2.50200.80 (5.2.0), framework-arduinoespressif32 2.10004.191002 (1.0.4), tool-esptoolpy 1.20600.0 (2.6.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 27 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <Espalexa>
|   |-- <WebServer> 1.0
|   |   |-- <WiFi> 1.0
|   |   |-- <FS> 1.0
|   |-- <WiFi> 1.0
|-- <WiFi> 1.0
Building in release mode
Compiling .pio/build/esp32dev/src/EspalexaFullyFeatured.cpp.o
In file included from .pio/libdeps/esp32dev/Espalexa_ID5525/src/Espalexa.h:60:0,
                 from src/EspalexaFullyFeatured.cpp:16:
.pio/libdeps/esp32dev/Espalexa_ID5525/src/EspalexaDevice.h:6:15: warning: 'typedef' was ignored in this declaration
 typedef class EspalexaDevice;
               ^
In file included from src/EspalexaFullyFeatured.cpp:16:0:
.pio/libdeps/esp32dev/Espalexa_ID5525/src/Espalexa.h: In member function 'String Espalexa::typeString(EspalexaDeviceType)':
.pio/libdeps/esp32dev/Espalexa_ID5525/src/Espalexa.h:102:12: warning: enumeration value 'onoff' not handled in switch [-Wswitch]
     switch (t)
            ^
.pio/libdeps/esp32dev/Espalexa_ID5525/src/Espalexa.h: In member function 'String Espalexa::modelidString(EspalexaDeviceType)':
.pio/libdeps/esp32dev/Espalexa_ID5525/src/Espalexa.h:114:12: warning: enumeration value 'onoff' not handled in switch [-Wswitch]
     switch (t)
            ^
In file included from src/EspalexaFullyFeatured.cpp:16:0:
.pio/libdeps/esp32dev/Espalexa_ID5525/src/Espalexa.h: In destructor 'Espalexa::~Espalexa()':
.pio/libdeps/esp32dev/Espalexa_ID5525/src/Espalexa.h:584:22: warning: deleting array '((Espalexa*)this)->Espalexa::devices'
   ~Espalexa(){delete devices;} //note: Espalexa is NOT meant to be destructed
                      ^
Retrieving maximum program size .pio/build/esp32dev/firmware.elf
Checking size .pio/build/esp32dev/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
DATA:    [=         ]  12.2% (used 39816 bytes from 327680 bytes)
PROGRAM: [======    ]  57.9% (used 759514 bytes from 1310720 bytes)
================================================================================================================================= [SUCCESS] Took 1.75 seconds =================================================================================================================================

Terminal will be reused by tasks, press any key to close it.
Aircoookie commented 4 years ago

DEBUG: Current (esp-prog) seems to be the culprit. I am unsure though how one would go about disabling it...

arkils commented 2 years ago

I'm also seeing these messages printing on my serial.

[ 64355][E][WebServer.cpp:635] _handleRequest(): request handler not found [ 64407][E][WebServer.cpp:635] _handleRequest(): request handler not found [111027][E][WebServer.cpp:635] _handleRequest(): request handler not found [124449][E][WebServer.cpp:635] _handleRequest(): request handler not found [235159][E][WebServer.cpp:635] _handleRequest(): request handler not found [298607][E][WebServer.cpp:635] _handleRequest(): request handler not found

Alberthacos commented 2 years ago

I am also seeing similar messages [E][WebServer.cpp:633] _handleRequest(): request handler not found [E][WebServer.cpp:633] _handleRequest(): request handler not found [E][WebServer.cpp:633] _handleRequest(): request handler not found

once I read that it could be due to the version of some library or the software itself, that time I was able to delete the error but I have not been able to find it again