• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Hello World Server Works, But Web Output Control Doesn’t

Q&A Forum › Category: ESP32 › Hello World Server Works, But Web Output Control Doesn’t
0 Vote Up Vote Down
radiovan7 asked 2 years ago

I have a generic ESP32WROOM32 board. I got it working with Arduino IDE 1.8.19 with Flash Frequency 40 MHz and DIO mode. It won’t run with Platformio since I don’t know how to set those parameters in VSCode.
I can load the data files into a SPIFFS partition with the ESP32 Sketch Data plugin, and the code for 2.1-Web Server Outputs compiles without errors. I get this from the serial output:
Connecting to WiFi …192.168.254.157
SPIFFS mounted successfully
Server started.
I get 404 or 500 error messages depending on whether I enter only the address or /index.html.
No webpage was found for the web address: http://192.168.254.157/

HTTP ERROR 404

Anyone have any ideas on how to troubleshoot this?  I have ordered two different boards directly from China to see if they might work with one of the board options in VSCode.

Thanks,
Bill

Question Tags: SPIFFS, WEB Server
8 Answers
0 Vote Up Vote Down
William Lucid answered 2 years ago

Hi Bill,

404 is file not found; have you tried http://192.168.254.157/index.html ?

Check for filenames for typos; filenames are case sensitive.

Regards,
William

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
Make sure you have the right files on the right path (data folder) and that you’ve uploaded the files to the board.
You can also open the Javascript console and check the error to see if you can get some more information.
Regards,
Sara

0 Vote Up Vote Down
radiovan7 answered 2 years ago

Thanks, William and Sara,
I tried another board with http://192.168.254.158/index.html (my router assigned it a new IP address).  Now I get HTTP Error 500 or page isn’t working, currently unable to handle this request.  I will go back and rewrite the index.html file and check it for errors.  Also, I will try renaming the data folder to Data in case it’s sensitive to that.
Bill

1 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
 
I believe the issue is either because you’re not placing the files in the right place or you’re not uploading the files to the board.
 
Make sure you created the data folder correctly in the right place (the folder should be called data) and that you placed the files with the right name inside that folder. Additionally, make sure you don’t forget to “Upload Filesystem Image” before uploading the code to the board.
 
Regards,
Sara

0 Vote Up Vote Down
radiovan7 answered 2 years ago

Hi Sara,
I uninstalled both versions of the Arduino IDE (1.8.19 and 2.2.1) and reinstalled 1.8.19 in the Windows app store version.  I started following Module 1, Unit 2 of the new Learn ESP32 with Arduino course I just bought. I discovered that Java had been removed from my computer.
Apparently the Arduino IDE partially works without the Java Runtime but not for ESP32 web servers. I just got the ESP32_Async_Web_Server project running with the default setup for the ESP32-WROOM-DA Module.
Thank you,
Bill

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Is everything working as expected at the moment?
Let me know if you need help with anything else.
Regards,
Sara

0 Vote Up Vote Down
Huzaifa Sserugo answered 2 years ago

thank you Sara Santos, my problem was arising from not uploading filesystem image. but now I got it fixed and I am now cruising

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Great.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.