Replies: 2 comments
-
Hello @ikorman ,
Please not that you having an issue does not necessary mean there is a bug in the library that warrants a bug report ;-) In your case, just make sure that the most specific handler are registered before the more generic. Register for example That's it ;-) |
Beta Was this translation helpful? Give feedback.
-
You are write, I apologize, it's a bit a late, so i completely forgot about discussion section Regarding your solution, it's spot on, it works like a charm :) Thx for the great work you have put into this library 👍 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Platform
ESP32
IDE / Tooling
PlatformIO
What happened?
For some reason I have issue when registering pages that have complex paths, like for example "/config/ResetConfig" where handleResetConfig never gets triggered. Here is sample code for registration:
` server.on("/config", HTTP_GET, [this](AsyncWebServerRequest *request)
{ this->handleConfig(request); });
In above example, when I direct my browser to "/config/ResetConfig" nothing happens, but when rename path in the code to "/configResetConfig" handler is called when accessing "/configResetConfig". What is causing this?
Stack Trace
n/a
Minimal Reproductible Example (MRE)
` server.on("/config", HTTP_GET, [this](AsyncWebServerRequest *request)
{ this->handleConfig(request); });
I confirm that:
Beta Was this translation helpful? Give feedback.
All reactions