Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Enabling regex causes crash and bootloop #648

@teemue

Description

@teemue

Using PlatformIO and latest ESPAsyncWebServer.
Accessing http://ip/hello works but if I access /sensor, ESP crashes and bootloops.

server.on("/hello", HTTP_GET, [](AsyncWebServerRequest *request) {
  Serial.println("hello");
  request->send(200, "text / plain", "Other URL");
});

server.on("^\\/sensor\\/([0-9]+)$", HTTP_GET, [](AsyncWebServerRequest *request) {
  String sensorId = request->pathArg(0);
});

platform.ini:

[env:esp01]
platform = espressif8266
board = esp01_1m
framework = arduino
build_flags = 
  -DASYNCWEBSERVER_REGEX

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions