[GH-ISSUE #1625] error: 'HTTPAuthMethod' has not been declared #1384

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

Originally created by @Leonid49 on GitHub (Jun 12, 2023).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1625

PLEASE TRY Latest Master BRANCH before submitting bugs, in case they were already fixed.

Issues without basic info will be ignored or closed!

Please fill the info fields, it helps to get you faster support ;)

if you have a stack dump decode it:
https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/stack_dump.rst

for better debug messages:
https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/debugging.rst

----------------------------- Remove above -----------------------------

Basic Infos

Hardware

WiFimanager Branch/Release: Master

Esp8266/Esp32:

Hardware: ESP-8266

Core Version: 3.0.2 staging

Description

Problem description
compilation error: 'HTTPAuthMethod' has not been declared server->requestAuthentication(HTTPAuthMethod::BASIC_AUTH);
// DIGEST_AUTH

Settings in IDE

Module: ESP8266

Additional libraries:

Sketch

#include <ESP8266WiFi.h>
#include <ESP8266Ping.h>
#include <WiFiManager.h>

WiFiManager wifi;

void setup()
{
// put your setup code here, to run once:

}

void loop()
{
// put your main code here, to run repeatedly:

}

Debug Messages

messages here
Originally created by @Leonid49 on GitHub (Jun 12, 2023). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1625 ## PLEASE TRY Latest Master BRANCH before submitting bugs, in case they were already fixed. ## Issues without basic info will be ignored or closed! Please fill the info fields, it helps to get you faster support ;) if you have a stack dump decode it: https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/stack_dump.rst for better debug messages: https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/debugging.rst ----------------------------- Remove above ----------------------------- ### Basic Infos #### Hardware WiFimanager Branch/Release: Master Esp8266/Esp32: Hardware: ESP-8266 Core Version: 3.0.2 staging ### Description Problem description compilation error: 'HTTPAuthMethod' has not been declared server->requestAuthentication(HTTPAuthMethod::BASIC_AUTH); // DIGEST_AUTH ### Settings in IDE Module: ESP8266 Additional libraries: ### Sketch #include <ESP8266WiFi.h> #include <ESP8266Ping.h> #include <WiFiManager.h> WiFiManager wifi; void setup() { // put your setup code here, to run once: } void loop() { // put your main code here, to run repeatedly: } ### Debug Messages ``` messages here ```
Author
Owner

@Leonid49 commented on GitHub (Jun 12, 2023):

May very simple sketch is compiled with error: WiFiManager.cpp:1319:35: error: 'HTTPAuthMethod' has not been declared
1319 | server->requestAuthentication(HTTPAuthMethod::BASIC_AUTH); // DIGEST_AUTH
There is sketch:
#include <ESP8266WiFi.h>
#include <ESP8266Ping.h>
#include <WiFiManager.h>

WiFiManager wifi;

void setup()
{
// put your setup code here, to run once:

}

void loop()
{
// put your main code here, to run repeatedly:

}

When I comment : //#include <WiFiManager.h> //WiFiManager wifi; - compilling is success

What it mey be?

<!-- gh-comment-id:1587639079 --> @Leonid49 commented on GitHub (Jun 12, 2023): May very simple sketch is compiled with error: WiFiManager.cpp:1319:35: error: 'HTTPAuthMethod' has not been declared 1319 | server->requestAuthentication(HTTPAuthMethod::BASIC_AUTH); // DIGEST_AUTH There is sketch: #include <ESP8266WiFi.h> #include <ESP8266Ping.h> #include <WiFiManager.h> WiFiManager wifi; void setup() { // put your setup code here, to run once: } void loop() { // put your main code here, to run repeatedly: } When I comment : //#include <WiFiManager.h> //WiFiManager wifi; - compilling is success What it mey be?
Author
Owner

@tablatronix commented on GitHub (Jun 13, 2023):

using the wrong webserver library?

<!-- gh-comment-id:1588356637 --> @tablatronix commented on GitHub (Jun 13, 2023): using the wrong webserver library?
Author
Owner

@Leonid49 commented on GitHub (Jun 13, 2023):

How version of the WiFi WebServer I should using?

вт, 13 июн. 2023 г. в 04:16, Shawn A @.***>:

using the wrong webserver library?


Reply to this email directly, view it on GitHub
https://github.com/tzapu/WiFiManager/issues/1625#issuecomment-1588356637,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BAQKJ6OFNFLVIUATV2BESKLXK65NDANCNFSM6AAAAAAZDSNTRU
.
You are receiving this because you modified the open/close state.Message
ID: @.***>

<!-- gh-comment-id:1588636145 --> @Leonid49 commented on GitHub (Jun 13, 2023): How version of the WiFi WebServer I should using? вт, 13 июн. 2023 г. в 04:16, Shawn A ***@***.***>: > using the wrong webserver library? > > — > Reply to this email directly, view it on GitHub > <https://github.com/tzapu/WiFiManager/issues/1625#issuecomment-1588356637>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/BAQKJ6OFNFLVIUATV2BESKLXK65NDANCNFSM6AAAAAAZDSNTRU> > . > You are receiving this because you modified the open/close state.Message > ID: ***@***.***> >
Author
Owner

@kevinkessler commented on GitHub (Jul 14, 2023):

What version should we be using? If I use https://github.com/tzapu/WiFiManager#master or https://github.com/tzapu/WiFiManager#v2.0.16-rc.2 I get this HTTPAuthMethod error. If I use https://github.com/tzapu/WiFiManager#0.16.0, I get the "ESP8266Wifi.h: No such file or directory" error. This is for an ESP32 in platformio, and I put lib_ldf_mode = deep+ in my ini file.

<!-- gh-comment-id:1636110102 --> @kevinkessler commented on GitHub (Jul 14, 2023): What version should we be using? If I use https://github.com/tzapu/WiFiManager#master or https://github.com/tzapu/WiFiManager#v2.0.16-rc.2 I get this HTTPAuthMethod error. If I use https://github.com/tzapu/WiFiManager#0.16.0, I get the "ESP8266Wifi.h: No such file or directory" error. This is for an ESP32 in platformio, and I put lib_ldf_mode = deep+ in my ini file.
Author
Owner

@tablatronix commented on GitHub (Jul 15, 2023):

Not sure sounds like your environment is messed up, try in arduino IDE?

<!-- gh-comment-id:1636636951 --> @tablatronix commented on GitHub (Jul 15, 2023): Not sure sounds like your environment is messed up, try in arduino IDE?
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#1384
No description provided.