I previously used this library from the old repository. I decided to upgrade, and after the upgrade, I started having errors when requesting my API. The fact is that the last request for which the error was delayed, I'll explain:
- I received a request for ESP32
- I am reading json, I have sent commands to a third-party UART module
- I am waiting for a response
- I am giving a response to the server
As far as I understand, as soon as I exit the handler
WebServer.on("/api", HTTP_POST, [this](AsyncWebServerRequest *request) {}, NULL, [this](AsyncWebServerRequest *request, uint8_t *data, size_t len, size_t index, size_t total){});
it immediately closes the connection, how to resolve this issue?


I previously used this library from the old repository. I decided to upgrade, and after the upgrade, I started having errors when requesting my API. The fact is that the last request for which the error was delayed, I'll explain:
As far as I understand, as soon as I exit the handler
WebServer.on("/api", HTTP_POST, [this](AsyncWebServerRequest *request) {}, NULL, [this](AsyncWebServerRequest *request, uint8_t *data, size_t len, size_t index, size_t total){});it immediately closes the connection, how to resolve this issue?