ESP32 Webserver on ESP-IDF - E (14713) httpd: httpd_server_init: error in listen (112), still webpage is getting loaded

shruti_patel
Posts: 1
Joined: Wed Feb 22, 2023 6:21 am

ESP32 Webserver on ESP-IDF - E (14713) httpd: httpd_server_init: error in listen (112), still webpage is getting loaded

Postby shruti_patel » Wed Feb 22, 2023 7:56 am

Hi, I have implemented BLE+ Webserver ESP32 Wroom 32D board. Initially I was facing issue with loading webpage after connecting to Access Point on ESP32, but now, I am able to load the webpage page but on serial terminal it is showing me an error "E (14713) httpd: httpd_server_init: error in listen (112)" "I (14723) webserver: Error starting server!".

Sometimes the page is not getting fully loaded, It get stuck while updating data on webpage, although images are getting loaded.

I have not used any external library in the code, below is the list of files I have included:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "esp_spi_flash.h"
#include "esp_http_server.h"
#include "esp_spiffs.h"
#include "esp_wifi.h"
#include "esp_event.h"
#include "freertos/event_groups.h"
#include "esp_log.h"
#include "nvs_flash.h"
#include "esp_netif.h"
#include "driver/gpio.h"
#include <lwip/sockets.h>
#include <lwip/sys.h>
#include <lwip/api.h>
#include <lwip/netdb.h>
#include <lwip/err.h>
#include <sys/param.h>
#include "file_variables.h"
#include "cJSON.h"

Please guide me regarding the error, as it is randomly generated, I don't see it every time while accessing webpage.

Thanks you!

ESP_YJM
Posts: 300
Joined: Fri Feb 26, 2021 10:30 am

Re: ESP32 Webserver on ESP-IDF - E (14713) httpd: httpd_server_init: error in listen (112), still webpage is getting loa

Postby ESP_YJM » Fri Feb 24, 2023 2:30 am

It seems the two listen TCP pcb exists and there local ip and port is the same. The address and port are already used.

Who is online

Users browsing this forum: No registered users and 59 guests