Skip to content

invalid conversion from 'const AsyncWebHeader*' to 'AsyncWebHeader*' #335

Open
@towerofpower256

Description

@towerofpower256

When I try to build from the repo 2025-05-14 5:55am GMT, I get the below error:

lib/framework/SecuritySettingsService.cpp:18:59: error: invalid conversion from 'const AsyncWebHeader*' to 'AsyncWebHeader*'
AsyncWebHeader* authorizationHeader = request->getHeader(AUTHORIZATION_HEADER);

and

lib/framework/SecuritySettingsService.cpp:26:58: error: invalid conversion from 'const AsyncWebParameter*' to 'AsyncWebParameter*'
AsyncWebParameter* tokenParamater = request->getParam(ACCESS_TOKEN_PARAMATER);

It looks like the request->getHeader() and request->getParam() functions return const AsyncWebHeader* instead of AsyncWebHeader*. I suspect that the ESPAsyncWebServer has been updated and doesn't work with esp8266-react anymore.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions