[GH-ISSUE #884] Request redirected to captive portal #747

Open
opened 2026-02-28 01:26:52 +03:00 by kerem · 2 comments
Owner

Originally created by @GastonMelo on GitHub (May 13, 2019).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/884

until 3 days ago I was using WiFiManager without problems. I install Arduino 1.8.9 and everything stop working with this message on serial monitor:
xxxxxxxxxxxxxxxxxxx
*WM: Sent wifi save page
*WM: Connecting to new AP
*WM: Connecting as wifi client...
*WM: Connection result:
*WM: 4
*WM: Failed to connect.
So I reinstall arduino 1.8.7 and try again but the error is still there, dont know where and why.
this are my headers:
#include <FS.h>
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
#include <DNSServer.h>
#include <WiFiManager.h>
#include "ArduinoJson.h"

and I using this code:
WiFiManagerParameter custom_WiFiRelay("WiFiRelay", "WiFiRelayName", WiFiRelay, 21);
// Connect to WiFi network
WiFiManager wifiManager;
//set config
wifiManager.setSaveConfigCallback(saveConfigCallback);
//agregar nuevo parametro
wifiManager.addParameter(&custom_WiFiRelay);
//RESET WIFIMANAGER********
//wifiManager.resetSettings();
//*******************************************************
wifiManager.autoConnect("WiFiRelay");//coment serial.begin()
if (!MDNS.begin("esp01")) {}
server.begin();
strcpy(WiFiRelay, custom_WiFiRelay.getValue());
if (shouldSaveConfig) {
Serial.println("saving config");
DynamicJsonBuffer jsonBuffer;
JsonObject& json = jsonBuffer.createObject();
json["WiFiRelay"] = WiFiRelay;
File configFile = SPIFFS.open("/config.json", "w");
if (!configFile) {
Serial.println("failed to open config file for writing");
}

json.printTo(Serial);
json.printTo(configFile);
configFile.close();

}

I check the router, disable firewall PC, re-re-install arduino 1.8.9 and 1.8.7. Check code and compared to working examples. How can something that was working with arduino 1.8.7 until 4 days ago stop working installing arduino 1.8.9?

Originally created by @GastonMelo on GitHub (May 13, 2019). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/884 until 3 days ago I was using WiFiManager without problems. I install Arduino 1.8.9 and everything stop working with this message on serial monitor: xxxxxxxxxxxxxxxxxxx *WM: Sent wifi save page *WM: Connecting to new AP *WM: Connecting as wifi client... *WM: Connection result: *WM: 4 *WM: Failed to connect. So I reinstall arduino 1.8.7 and try again but the error is still there, dont know where and why. this are my headers: #include <FS.h> #include <ESP8266WiFi.h> #include <ESP8266WebServer.h> #include <ESP8266mDNS.h> #include <DNSServer.h> #include <WiFiManager.h> #include "ArduinoJson.h" and I using this code: WiFiManagerParameter custom_WiFiRelay("WiFiRelay", "WiFiRelayName", WiFiRelay, 21); // Connect to WiFi network WiFiManager wifiManager; //set config wifiManager.setSaveConfigCallback(saveConfigCallback); //agregar nuevo parametro wifiManager.addParameter(&custom_WiFiRelay); //***************RESET WIFIMANAGER*********************** //wifiManager.resetSettings(); //******************************************************* wifiManager.autoConnect("WiFiRelay");//coment serial.begin() if (!MDNS.begin("esp01")) {} server.begin(); strcpy(WiFiRelay, custom_WiFiRelay.getValue()); if (shouldSaveConfig) { Serial.println("saving config"); DynamicJsonBuffer jsonBuffer; JsonObject& json = jsonBuffer.createObject(); json["WiFiRelay"] = WiFiRelay; File configFile = SPIFFS.open("/config.json", "w"); if (!configFile) { Serial.println("failed to open config file for writing"); } json.printTo(Serial); json.printTo(configFile); configFile.close(); } I check the router, disable firewall PC, re-re-install arduino 1.8.9 and 1.8.7. Check code and compared to working examples. How can something that was working with arduino 1.8.7 until 4 days ago stop working installing arduino 1.8.9?
Author
Owner

@tablatronix commented on GitHub (May 13, 2019):

erase your flash

<!-- gh-comment-id:491906086 --> @tablatronix commented on GitHub (May 13, 2019): erase your flash
Author
Owner

@GastonMelo commented on GitHub (May 13, 2019):

thanks, solve the problem.

<!-- gh-comment-id:491919946 --> @GastonMelo commented on GitHub (May 13, 2019): thanks, solve the problem.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#747
No description provided.