It's impossible to help you given the amount of information you've provided.
Start by telling us which Arduino board you're using.
Then, post an MRE. This is the smallest possible complete code that compiles and demonstrates the problem at hand, and only that problem. Leave out any messy clutter code that's not related to the problem. Your example code should also not require any special hardware connected to the Arduino and should use the smallest possible number of external libraries.
I'm using an ESP32 with the Arudino framework, not a commercial Arduino board.
It's almost impossible to provide a complete example that demostrates the issue. If I was able to do that I will solved the issue by myself.
I try to rephrase my question:
"how is it possible that any part of the code triggers a wdt reset if the wdt has been disabled?"
I'm sorry if it was not so clear, but I'm not asking you to solve the AsyncWebServer issue, but if I need to add other code to prevent any wdt reset.
/**
* @brief Unsubscribes a task from the Task Watchdog Timer (TWDT)
*
* This function will unsubscribe a task from the TWDT. After being
* unsubscribed, the task should no longer call esp_task_wdt_reset(). If the
* task is an IDLE task, this function will automatically disable the calling
* of esp_task_wdt_reset() from the Idle Hook. Calling this function whilst the
* TWDT is uninitialized or attempting to unsubscribe an already unsubscribed
* task from the TWDT will result in an error code being returned.
*
* @param[in] handle Handle of the task. Input NULL to unsubscribe the
* current running task.
*
* @return
* - ESP_OK: Successfully unsubscribed the task from the TWDT
* - ESP_ERR_INVALID_ARG: Error, the task is already unsubscribed
* - ESP_ERR_INVALID_STATE: Error, the TWDT has not been initialized yet
*/
esp_err_t esp_task_wdt_delete(TaskHandle_t handle);
Additionally, if you set the Core Debug Level to something other than "None" when you run the code, you'll see:
[ 3493][E][esp32-hal-misc.c:143] disableCore1WDT(): Failed to remove Core 1 IDLE task from WDT