{"action":"created","issue":{"url":"https://api.github.com/repos/tzapu/WiFiManager/issues/545","repository_url":"https://api.github.com/repos/tzapu/WiFiManager","labels_url":"https://api.github.com/repos/tzapu/WiFiManager/issues/545/labels{/name}","comments_url":"https://api.github.com/repos/tzapu/WiFiManager/issues/545/comments","events_url":"https://api.github.com/repos/tzapu/WiFiManager/issues/545/events","html_url":"https://github.com/tzapu/WiFiManager/issues/545","id":301993879,"number":545,"title":"Server not working after portal connection. Only after manual reset.","user":{"login":"jwktje","id":4722137,"avatar_url":"https://avatars1.githubusercontent.com/u/4722137?v=4","gravatar_id":"","url":"https://api.github.com/users/jwktje","html_url":"https://github.com/jwktje","followers_url":"https://api.github.com/users/jwktje/followers","following_url":"https://api.github.com/users/jwktje/following{/other_user}","gists_url":"https://api.github.com/users/jwktje/gists{/gist_id}","starred_url":"https://api.github.com/users/jwktje/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwktje/subscriptions","organizations_url":"https://api.github.com/users/jwktje/orgs","repos_url":"https://api.github.com/users/jwktje/repos","events_url":"https://api.github.com/users/jwktje/events{/privacy}","received_events_url":"https://api.github.com/users/jwktje/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-03-03T12:19:32Z","updated_at":"2018-03-05T00:39:43Z","closed_at":null,"author_association":"NONE","body":"### Basic Infos\r\nWebserver responses only work on a reset after successfully connecting to a Wifi Network via the portal.\r\n\r\n#### Hardware\r\nWiFimanager Branch/Release:  ESP32\r\n\r\nHardware:\t\tESP32 (Wemos Lolin32)\r\n\r\n### Description\r\n\r\nI'm using the bbx10 webserver and the ESP32 branch of WifiManager. Everything works great and stable since running these versions. But my only problem is that my server responses get a ERR_CONNECTION_REFUSED. When I reset the module and it already has the credentials, everything runs fine.\r\n\r\n\r\n### Sketch\r\n\r\n```\r\n//Init webserver\r\nWebServer server(80);\r\n\r\nvoid setup() {\r\n  \r\n  //Begin Serial\r\n  Serial.begin(115200);\r\n \r\n  //Manager setup\r\n  WiFiManager wifiManager;\r\n  wifiManager.setBreakAfterConfig(true);\r\n  //wifiManager.resetSettings();\r\n  \r\n  if (!wifiManager.autoConnect(\"ConfigureWifi\")) {\r\n    Serial.println(\"failed to connect and hit timeout\");\r\n    delay(3000);\r\n    //reset and try again\r\n    ESP.restart();\r\n    delay(5000);\r\n  }\r\n\r\n  Serial.print ( \"Connected with IP address: \" );\r\n  Serial.println ( WiFi.localIP() );\r\n\r\n  server.begin();\r\n  \r\n  server.on(\"/\", handle_root);\r\n```\r\n\r\n### Debug Messages\r\n\r\n```\r\n*WM: Free heap:  139096\r\n*WM: ESP-IDF version:  v3.1-dev-239-g1c3dd23f-dirty\r\n*WM: freeing allocated params!\r\n*WM: unloading\r\n*WM: -> captive.apple.com\r\n*WM: <- Request redirected to captive portal\r\n*WM: <- HTTP Root\r\n*WM: -> 192.168.4.1\r\n*WM: -> captive.apple.com\r\n*WM: <- Request redirected to captive portal\r\n*WM: <- HTTP Root\r\n*WM: -> 192.168.4.1\r\n*WM: -> captive.apple.com\r\n*WM: <- Request redirected to captive portal\r\n*WM: <- HTTP Root\r\n*WM: -> 192.168.4.1\r\n*WM: -> captive.apple.com\r\n*WM: <- Request redirected to captive portal\r\n*WM: <- HTTP Wifi\r\n*WM: Free heap:  132700\r\n*WM: ESP-IDF version:  v3.1-dev-239-g1c3dd23f-dirty\r\n*WM: freeing allocated params!\r\n*WM: unloading\r\n*WM: Free heap:  132708\r\n*WM: ESP-IDF version:  v3.1-dev-239-g1c3dd23f-dirty\r\n*WM: freeing allocated params!\r\n*WM: unloading\r\n*WM: Scan done\r\n*WM: AP:  -52 Network-redacted\r\n*WM: AP:  -79 Network-redacted\r\n*WM: AP:  -91 Network-redacted\r\n*WM: Sent config page\r\n*WM: <- HTTP Root\r\n*WM: -> 192.168.4.1\r\n*WM: -> captive.apple.com\r\n*WM: <- Request redirected to captive portal\r\n*WM: <- HTTP Root\r\n*WM: -> 192.168.4.1\r\n*WM: NUM CLIENTS: 1\r\n*WM: -> captive.apple.com\r\n*WM: <- Request redirected to captive portal\r\n*WM: <- HTTP WiFi save \r\n*WM: Method: POST\r\n*WM: Sent wifi save page\r\n*WM: Connecting to a new AP\r\n*WM: Connecting as wifi client...\r\n*WM: wifi station disconnect\r\n*WM: Connecting to new AP\r\n*WM: connectTimeout not set, ESP waitForConnectResult...\r\n*WM: Free heap:  131700\r\n*WM: ESP-IDF version:  v3.1-dev-239-g1c3dd23f-dirty\r\n*WM: freeing allocated params!\r\n*WM: unloading\r\n*WM: Free heap:  132008\r\n*WM: ESP-IDF version:  v3.1-dev-239-g1c3dd23f-dirty\r\n*WM: freeing allocated params!\r\n*WM: unloading\r\n*WM: Connection result: WL_CONNECTED\r\n*WM: Connect to new AP [SUCCESS]\r\n*WM: Got IP Address:\r\n*WM: 192.168.2.23\r\n*WM: disconnect configportal\r\n*WM: disconnect configportal - softAPdisconnect failed\r\n*WM: Free heap:  145384\r\n*WM: ESP-IDF version:  v3.1-dev-239-g1c3dd23f-dirty\r\n*WM: freeing allocated params!\r\n*WM: unloading\r\n*WM: Free heap:  145580\r\n*WM: ESP-IDF version:  v3.1-dev-239-g1c3dd23f-dirty\r\n*WM: freeing allocated params!\r\n*WM: unloading\r\n*WM: config portal exiting\r\nConnected with IP address: 192.168.2.23\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/tzapu/WiFiManager/issues/comments/370280001","html_url":"https://github.com/tzapu/WiFiManager/issues/545#issuecomment-370280001","issue_url":"https://api.github.com/repos/tzapu/WiFiManager/issues/545","id":370280001,"user":{"login":"tablatronix","id":807787,"avatar_url":"https://avatars1.githubusercontent.com/u/807787?v=4","gravatar_id":"","url":"https://api.github.com/users/tablatronix","html_url":"https://github.com/tablatronix","followers_url":"https://api.github.com/users/tablatronix/followers","following_url":"https://api.github.com/users/tablatronix/following{/other_user}","gists_url":"https://api.github.com/users/tablatronix/gists{/gist_id}","starred_url":"https://api.github.com/users/tablatronix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tablatronix/subscriptions","organizations_url":"https://api.github.com/users/tablatronix/orgs","repos_url":"https://api.github.com/users/tablatronix/repos","events_url":"https://api.github.com/users/tablatronix/events{/privacy}","received_events_url":"https://api.github.com/users/tablatronix/received_events","type":"User","site_admin":false},"created_at":"2018-03-05T00:39:43Z","updated_at":"2018-03-05T00:39:43Z","author_association":"COLLABORATOR","body":"Do me a favor, port scan your esp. what os are you on i can tell you how"}}
{"actor":{"display_login":"tablatronix"}}