zhouhan0126 / WIFIMANAGER-ESP32

wifimanager-esp32
MIT License
411 stars 136 forks source link

_handleRequest(): request handler not found #35

Open James-Aylward opened 4 years ago

James-Aylward commented 4 years ago

When running the following code:

#include <Arduino.h>
#include <WiFi.h>
#include <WebServer.h>
#include <DNSServer.h>
#include <WiFiManager.h>

void setup()
{
    Serial.begin(115200);

    WiFiManager wifiManager;
    wifiManager.startConfigPortal();

    Serial.println("Connected");
}

void loop()
{
    // put your main code here, to run repeatedly:
}

I get the following error immediately after connecting to the access point:

[E][WebServer.cpp:617] _handleRequest(): request handler not found
*WM: Request redirected to captive portal
Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC      : 0x400d5ae2  PS      : 0x00060430  A0      : 0x800d6ef9  A1      : 0x3ffb1bf0
A2      : 0x3ffb1c24  A3      : 0x3ffcbe8c  A4      : 0x00000009  A5      : 0x00000001
A6      : 0x00060e23  A7      : 0x00000000  A8      : 0x000009e3  A9      : 0x3ffb1bd0
A10     : 0x3ffb1c64  A11     : 0x3ffb1c4c  A12     : 0x3ffb1c4c  A13     : 0x0000ff00  
A14     : 0x00ff0000  A15     : 0xff000000  SAR     : 0x00000004  EXCCAUSE: 0x0000001c
EXCVADDR: 0x000009e7  LBEG    : 0x400014fd  LEND    : 0x4000150d  LCOUNT  : 0xfffffffe

Backtrace: 0x400d5ae2:0x3ffb1bf0 0x400d6ef6:0x3ffb1c10 0x400d71ba:0x3ffb1ca0 0x40147112:0x3ffb1d60 0x400d2477:0x3ffb1d80 0x400d2663:0x3ffb1da0 0x400d271f:0x3ffb1df0 0x400d7b4a:0x3ffb1e40 0x400d7ca3:0x3ffb1e80 0x400d1230:0x3ffb1ed0 0x400d9b3f:0x3ffb1fb0 0x40088b7d:0x3ffb1fd0

Rebooting...

and this cycle continues for a little bit. Where have I gone wrong?

shridattdudhat commented 4 years ago

+1

gon0 commented 4 years ago

+1 I can connect to the access point. If I open the captive portal, I receive the same message (Core 1 panic'ed (LoadProhibited)). I assume you also use an ESP32? The exception decoder gives me this:


PC: 0x400014fd
EXCVADDR: 0x00000020

Decoding stack results
0x400e1564: String::operator=(__FlashStringHelper const*) at C:\Users\myuser\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\cores\esp32\WString.cpp line 295
0x400e158b: String::String(__FlashStringHelper const*) at C:\Users\myuser\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\cores\esp32\WString.cpp line 45
0x400df256: WiFiManager::handleRoot() at C:\Users\myuser\Documents\Arduino\libraries\WIFIMANAGER-ESP32\WiFiManager.cpp line 404
0x4016c5fe: std::_Function_handler    (WiFiManager*)> >::_M_invoke(std::_Any_data const&) at c:\users\myuser\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0/functional line 600
0x400dc312: std::function ::operator()() const at c:\users\myuser\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0/functional line 2271
0x400dc3b9: FunctionRequestHandler::handle(WebServer&, HTTPMethod, String) at C:\Users\myuser\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WebServer\src\detail/RequestHandlersImpl.h line 81
0x400dc426: WebServer::_handleRequest() at C:\Users\myuser\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WebServer\src\WebServer.cpp line 620
0x400dc58f: WebServer::handleClient() at C:\Users\myuser\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WebServer\src\WebServer.cpp line 309
0x400dfd45: WiFiManager::startConfigPortal(char const*, char const*) at C:\Users\myuser\Documents\Arduino\libraries\WIFIMANAGER-ESP32\WiFiManager.cpp line 205
0x400dfed6: WiFiManager::autoConnect(char const*, char const*) at C:\Users\myuser\Documents\Arduino\libraries\WIFIMANAGER-ESP32\WiFiManager.cpp line 161
0x400d28c5: setup_wifi() at C:\Programs\myproject/WLAN_Routinen.ino line 42
0x400d2d98: setup() at C:\Programs\myproject/MultiTurnDemo.ino line 213
0x400e200b: loopTask(void*) at C:\Users\myuser\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\cores\esp32\main.cpp line 14
0x40088c09: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c line 143