1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-19 19:52:20 +01:00
This commit is contained in:
J. Nick Koston
2025-06-29 21:36:25 -05:00
parent a43caf08a6
commit 9778289d33

View File

@@ -154,11 +154,7 @@ esp_err_t AsyncWebServer::request_handler_(AsyncWebServerRequest *request) const
this->on_not_found_(request);
return ESP_OK;
}
// No handler found - send 404 response
// This prevents "uri handler execution failed" warnings
ESP_LOGD(TAG, "No handler found for URL: %s (method: %d)", request->url().c_str(), request->method());
request->send(404, "text/plain", "Not Found");
return ESP_OK;
return ESP_ERR_NOT_FOUND;
}
AsyncWebServerRequest::~AsyncWebServerRequest() {