DavidBertet / PowerJeep

A Ryobi Battery Conversion for Ride on Cars
MIT License
63 stars 7 forks source link

Webpage load fails with Too Many Redirects #11

Closed Cabalist closed 3 months ago

Cabalist commented 3 months ago

Hello!

I have this board here: https://www.amazon.com/dp/B08D5ZD528 which should be the same from the README.

I'm running macOS 14.4 and from the cloned repo I'm not able to run pio run -t upload -e esp32doit-devkit-v1 without an error about urllib3 that looks to be a compatibility issue with the platform being pinned at espressif32@5.3.0. I updated the line in platformio.ini to espressif32@5.4.0 and I'm now able to build and upload.

BUT

I now get an error very similar to #3 where upon loading the webpage I get an infinite redirect. The serial monitor looks like this:

/opt/homebrew/bin/pio device monitor -e esp32doit-devkit-v1
--- Terminal on /dev/cu.usbserial-0001 | 115200 8-N-1
--- Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at https://bit.ly/pio-monitor-filters
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
␛[0;32mI (22625) dns_captive_portal: Received 38 bytes from 192.168.4.2 | DNS reply with len: 54␛[0m
␛[0;32mI (22635) dns_captive_portal: Waiting for data␛[0m
␛[0;31mE (22635) webfile: Request received for /canonical.html␛[0m
␛[0;31mE (22745) webfile: Failed to stat file: /spiffs/canonical.html␛[0m
␛[0;32mI (23265) dns_captive_portal: Received 38 bytes from 192.168.4.2 | DNS reply with len: 54␛[0m
␛[0;32mI (23265) dns_captive_portal: Waiting for data␛[0m
␛[0;32mI (23265) dns_captive_portal: Received 38 bytes from 192.168.4.2 | DNS reply with len: 54␛[0m
␛[0;32mI (23275) dns_captive_portal: Waiting for data␛[0m
␛[0;32mI (23285) dns_captive_portal: Received 46 bytes from 192.168.4.2 | DNS reply with len: 62␛[0m
␛[0;32mI (23295) dns_captive_portal: Waiting for data␛[0m
␛[0;32mI (23295) dns_captive_portal: Received 46 bytes from 192.168.4.2 | DNS reply with len: 62␛[0m
␛[0;32mI (23305) dns_captive_portal: Waiting for data␛[0m
␛[0;32mI (23315) dns_captive_portal: Received 45 bytes from 192.168.4.2 | DNS reply with len: 61␛[0m
␛[0;32mI (23315) dns_captive_portal: Waiting for data␛[0m
␛[0;32mI (23325) dns_captive_portal: Received 39 bytes from 192.168.4.2 | DNS reply with len: 55␛[0m
␛[0;32mI (23335) dns_captive_portal: Waiting for data␛[0m
␛[0;32mI (23335) dns_captive_portal: Received 39 bytes from 192.168.4.2 | DNS reply with len: 55␛[0m
␛[0;32mI (23345) dns_captive_portal: Waiting for data␛[0m
␛[0;32mI (23375) dns_captive_portal: Received 40 bytes from 192.168.4.2 | DNS reply with len: 56␛[0m
␛[0;32mI (23375) dns_captive_portal: Waiting for data␛[0m
␛[0;32mI (23375) dns_captive_portal: Received 40 bytes from 192.168.4.2 | DNS reply with len: 56␛[0m
␛[0;32mI (23385) dns_captive_portal: Waiting for data␛[0m
␛[0;32mI (25245) dns_captive_portal: Received 31 bytes from 192.168.4.2 | DNS reply with len: 47␛[0m
␛[0;32mI (25245) dns_captive_portal: Waiting for data␛[0m
␛[0;31mE (25765) webfile: Request received for /canonical.html␛[0m
␛[0;31mE (25865) webfile: Failed to stat file: /spiffs/canonical.html␛[0m
␛[0;31mE (28885) webfile: Request received for /canonical.html␛[0m
␛[0;31mE (28945) webfile: Failed to stat file: /spiffs/canonical.html␛[0m
␛[0;32mI (29325) dns_captive_portal: Received 28 bytes from 192.168.4.2 | DNS reply with len: 44␛[0m
␛[0;32mI (29325) dns_captive_portal: Waiting for data␛[0m
␛[0;32mI (29325) dns_captive_portal: Received 36 bytes from 192.168.4.2 | DNS reply with len: 52␛[0m
␛[0;32mI (29335) dns_captive_portal: Waiting for data␛[0m
␛[0;32mI (29365) dns_captive_portal: Received 43 bytes from 192.168.4.2 | DNS reply with len: 59␛[0m
␛[0;32mI (29365) dns_captive_portal: Waiting for data␛[0m
␛[0;32mI (29365) dns_captive_portal: Received 43 bytes from 192.168.4.2 | DNS reply with len: 59␛[0m
␛[0;32mI (29375) dns_captive_portal: Waiting for data␛[0m
␛[0;31mE (31115) webfile: Request received for /␛[0m
␛[0;31mE (31205) webfile: Failed to stat file: /spiffs/index.html␛[0m
␛[0;31mE (31215) webfile: Request received for /␛[0m
␛[0;31mE (31355) webfile: Failed to stat file: /spiffs/index.html␛[0m
␛[0;31mE (31375) webfile: Request received for /␛[0m
␛[0;31mE (31475) webfile: Failed to stat file: /spiffs/index.html␛[0m
␛[0;31mE (31505) webfile: Request received for /␛[0m
␛[0;31mE (31585) webfile: Failed to stat file: /spiffs/index.html␛[0m
␛[0;31mE (31615) webfile: Request received for /␛[0m
␛[0;31mE (31665) webfile: Failed to stat file: /spiffs/index.html␛[0m
␛[0;31mE (31695) webfile: Request received for /␛[0m
␛[0;31mE (31805) webfile: Failed to stat file: /spiffs/index.html␛[0m
␛[0;31mE (31825) webfile: Request received for /␛[0m
␛[0;31mE (31925) webfile: Failed to stat file: /spiffs/index.html␛[0m
␛[0;31mE (31955) webfile: Request received for /␛[0m
␛[0;31mE (32035) webfile: Failed to stat file: /spiffs/index.html␛[0m
␛[0;31mE (32045) webfile: Request received for /canonical.html␛[0m
␛[0;31mE (32135) webfile: Failed to stat file: /spiffs/canonical.html␛[0m
␛[0;31mE (32145) webfile: Request received for /␛[0m
␛[0;31mE (32235) webfile: Failed to stat file: /spiffs/index.html␛[0m
␛[0;31mE (32275) webfile: Request received for /␛[0m
␛[0;31mE (32365) webfile: Failed to stat file: /spiffs/index.html␛[0m
␛[0;31mE (32395) webfile: Request received for /␛[0m
␛[0;31mE (32445) webfile: Failed to stat file: /spiffs/index.html␛[0m
␛[0;31mE (32465) webfile: Request received for /␛[0m
␛[0;31mE (32555) webfile: Failed to stat file: /spiffs/index.html␛[0m
␛[0;31mE (32585) webfile: Request received for /␛[0m
␛[0;31mE (32715) webfile: Failed to stat file: /spiffs/index.html␛[0m
␛[0;31mE (32735) webfile: Request received for /␛[0m
␛[0;31mE (32845) webfile: Failed to stat file: /spiffs/index.html␛[0m
␛[0;31mE (32865) webfile: Request received for /␛[0m
␛[0;31mE (32925) webfile: Failed to stat file: /spiffs/index.html␛[0m
␛[0;31mE (32945) webfile: Request received for /␛[0m
␛[0;31mE (32995) webfile: Failed to stat file: /spiffs/index.html␛[0m
␛[0;31mE (33025) webfile: Request received for /␛[0m
␛[0;31mE (33135) webfile: Failed to stat file: /spiffs/index.html␛[0m
␛[0;31mE (33175) webfile: Request received for /␛[0m
␛[0;31mE (33245) webfile: Failed to stat file: /spiffs/index.html␛[0m
␛[0;31mE (33275) webfile: Request received for /␛[0m
␛[0;31mE (33365) webfile: Failed to stat file: /spiffs/index.html␛[0m
␛[0;31mE (33395) webfile: Request received for /␛[0m
␛[0;31mE (33465) webfile: Failed to stat file: /spiffs/index.html␛[0m
␛[0;31mE (33495) webfile: Request received for /␛[0m
␛[0;31mE (33575) webfile: Failed to stat file: /spiffs/index.html␛[0m
␛[0;31mE (35185) webfile: Request received for /canonical.html␛[0m
␛[0;31mE (35235) webfile: Failed to stat file: /spiffs/canonical.html␛[0m
␛[0;32mI (35615) dns_captive_portal: Received 33 bytes from 192.168.4.2 | DNS reply with len: 49␛[0m
␛[0;32mI (35615) dns_captive_portal: Waiting for data␛[0m
␛[0;31mE (38385) webfile: Request received for /canonical.html␛[0m
␛[0;31mE (38525) webfile: Failed to stat file: /spiffs/canonical.html␛[0m
␛[0;32mI (39395) dns_captive_portal: Received 42 bytes from 192.168.4.2 | DNS reply with len: 58␛[0m
␛[0;32mI (39405) dns_captive_portal: Waiting for data␛[0m
␛[0;32mI (39405) dns_captive_portal: Received 42 bytes from 192.168.4.2 | DNS reply with len: 58␛[0m
␛[0;32mI (39415) dns_captive_portal: Waiting for data␛[0m

I'm not sure how to proceed. I'm not expecting general support here but if anyone has any hints I'd really appreciate it.

Cabalist commented 3 months ago

D'oh! I was missing the step of uploading the filesystem.

In my case it was pio run -t uploadfs but that is Step 6 in the instructions on the README. I'll close this ticket.

Thanks!