Post your full code. Tell us which ESP32 board you're using. Tell us which version of the ESP32 Arduino Core you're using. Tell us exactly which Asynch Server library you're using and exactly which version.
Post your full code. Tell us which ESP32 board you're using. Tell us which version of the ESP32 Arduino Core you're using. Tell us exactly which Asynch Server library you're using and exactly which version.