Skip to content

Fatal Error with http_parser.h #7515

@CSIAUD

Description

@CSIAUD

Board

WEMOS D1 mini

Device Description

Just the arduino and a mosfet.

Hardware Configuration

Microcontroller: ESP8266

Frequency: 80MHz

Flash: 4MB

RAM: 80KB

Version

other

IDE Name

Arduino IDE

Operating System

windows 11

Flash frequency

i don't know

PSRAM enabled

no

Upload speed

921600

Description

I couldn't find the WebServer library in the management, so I downloaded it and want to compile/upload, I got the 'No such file or directory' error.

Sketch

#include <WebServer.h>

WebServer monWebServeur(80);

void handleRoot() {
  MYDEBUG_PRINTLN("-WEBSERVER : requete root");

  String out = "";
  out += "<html><head>";
  out += "<title>TEST - PC Power</title>";
  out += "<style>body { background-color: #cccccc; font-family: Arial, Helvetica, Sans-Serif; Color: #000088; }</style>";
  out += "</head><body>";
  out += "<h1>Hello World !!</h1><br>";
  out += "</body></html>";
  monWebServeur.send(200, "text/html", out);
}

Debug Message

In file included from c:\Users\csiau\Documents\Arduino\libraries\WebServer\src/WebServer.h:30,
                 from C:\Users\csiau\Documents\arduino\powerCase\main\MyWebServer.h:32,
                 from C:\Users\csiau\Documents\arduino\powerCase\main\main.ino:3:
c:\Users\csiau\Documents\Arduino\libraries\WebServer\src/HTTP_Method.h:4:10: fatal error: http_parser.h: No such file or directory
    4 | #include "http_parser.h"
      |          ^~~~~~~~~~~~~~~
compilation terminated.

exit status 1

Compilation error: exit status 1

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions