Install Adafruit.IO WipperSnapper has javascript error reported in console

adafruit.io wippersnapper BETA support, discussions, and more!

Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Locked
User avatar
beauwithabang
 
Posts: 1
Joined: Sun Dec 18, 2022 12:40 am

Install Adafruit.IO WipperSnapper has javascript error reported in console

Post by beauwithabang »

Upon loading the page, I press the "Connect" button and choose the serial device I use to connect to my Adafruit Huzza ESP32 Feather. The form appears for me to enter my local SSID, WiFi password, Adafruit IO username and API Key, and Status LED brightness. I enter correct values for the first 4 fields and 0.5 for the Status LED brightness and then click the "Install WipperSnapper" button. On every occassion, the status for "7. WipperSnapper is installing, please wait..." shows "Erasing Flash (1/3)..." and does not progress past that point. The progress bar does not move/fill up at all to show any progress being made.

After encountering this issue multiple times and not finding a solution in this forum or by attempting to Google for other people having the same issue, I decided to try again, but have the Google Chrome Javascript Console open during the process to see any errors that may be reported.

About five seconds after clicking the "Install WipperSnapper" button, the following error is displayed in the Google Chrome Javascript Console:

Code: Select all

Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'interest-cohort'.
script.js:133 Unhandled rejection: SlipReadError: Invalid head of packet (0x00)
(anonymous) @ script.js:133
index.js?module:formatted:3063 Uncaught (in promise) SlipReadError: Invalid head of packet (0x00)
    at la.readPacket (index.js?module:formatted:3063:25)
    at async la.getResponse (index.js?module:formatted:3089:23)
    at async la.checkCommand (index.js?module:formatted:3013:20)
    at async la.eraseFlash (index.js?module:formatted:3402:9)
    at async Object.func (script.js:772:21)
    at async programScript (script.js:862:9)
    at async HTMLButtonElement.clickProgram (script.js:637:5)
readPacket @ index.js?module:formatted:3063
I am not savy enough to understand where the point of failure, if any, this error points to, but it seems like a reasonable place for the Adafruit developers to start looking.

Please let me know if I can do any testing or if any other information is needed that I haven't already provided.

User avatar
zalgon26
 
Posts: 5
Joined: Mon Dec 19, 2022 8:27 pm

Re: Install Adafruit.IO WipperSnapper has javascript error reported in console

Post by zalgon26 »

Same issue with same board, halts at "Erasing Flash (1/3)..."

text in the box reads:

"chip": "esp32",
"flashMode": "dio",
"flashFreq": "80m",
"flashSize": "4MB",
"structure": {
"0": "wippersnapper.feather_esp32.littlefs.1.0.0-beta.57.combined.bin"
}
}

Changed baud rate to 115200

I followed the notes on this page:
https://www.digikey.ca/en/maker/blogs/2 ... r-firmware

which states you must use Chrome (check) and must enable “Experimental Web Platform Features” in chrome://flags (check). I verified my local SSID, WiFi password, Adafruit IO username and API Key (also tried re-generating the key and inputting the new one). The USB cable is known-good, it is passing temperature and humidity data. I tried installing the firmware while logged out of AdafruitIO and all with same paused result.

Please suggest what else to try. I'm pretty sure I had this board via WiFi on Adafruit IO a couple of years ago, pre WipperSnapper, but I don't see any alternative posted here now. Thanks.

User avatar
zalgon26
 
Posts: 5
Joined: Mon Dec 19, 2022 8:27 pm

Re: Install Adafruit.IO WipperSnapper has javascript error reported in console

Post by zalgon26 »

I see now there is more in the box below the progress bar. Here is all of it:

Wippersnapper Firmware Uploader loaded.
Connecting...
Connected successfully.
Try hard reset.
Chip type ESP32
Connected to ESP32
MAC Address: 30:AE:A4:19:EE:A4
Uploading stub...
Running stub...
Stub is now running...
Detecting Flash Size
FlashId: 0x1640C8
Flash Manufacturer: c8
Flash Device: 4016
Auto-detected Flash size: 4MB
Attempting to change baud rate to 115200...
Fetching latest firmware...
Unzipping firmware bundle...
Flashing with settings:
{
"files": [
{
"filename": "secrets.json"
}
],
"rootFolder": "files",
"fileSystemSize": 1507328,
"blockSize": 4096,
"offset": 2686976,
"chip": "esp32",
"flashMode": "dio",
"flashFreq": "80m",
"flashSize": "4MB",
"structure": {
"0": "wippersnapper.feather_esp32.littlefs.1.0.0-beta.57.combined.bin"
}
}

Changed baud rate to 115200

User avatar
zalgon26
 
Posts: 5
Joined: Mon Dec 19, 2022 8:27 pm

Re: Install Adafruit.IO WipperSnapper has javascript error reported in console

Post by zalgon26 »

Just in case this helps, this is the repeating serial readout running the DHT sketch in Arduino after trying to install WipperSnapper:

rst:0x10 (RTCWDT_RTC_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
ets Jun 8 2016 00:22:57

User avatar
MakerMelissa
 
Posts: 375
Joined: Wed Jun 05, 2013 2:10 am

Re: Install Adafruit.IO WipperSnapper has javascript error reported in console

Post by MakerMelissa »

Please try resetting your board and giving it another attempt. I just tested with the Feather Huzzah 32 and didn't have the errors, but have seen them before in the underlying module and just attempting again is usually enough.

User avatar
zalgon26
 
Posts: 5
Joined: Mon Dec 19, 2022 8:27 pm

Re: Install Adafruit.IO WipperSnapper has javascript error reported in console

Post by zalgon26 »

Have retried many times. To "reset", I followed this note: "There is no "Factory Reset" binary file available for this board. You will need to upload the "Blink" sketch to your board". Done. The red LED flashes. Connected to the board in the WipperSnapper install connect page, red LED turns off. Click "Install WipperSnapper", get the exact same issue as stated above, with the same serial readout in Arduino after the attempt halts.

I keep guessing what to change. I tried setting the COM port at 9600 baud (was at 115200). Does it make a difference that the COM port is using "Silicone Labs CP210x USB to UART bridge"? It is working to connect the board to the laptop (Windows 10). My AdafruitIO username is correct, as is the key, as is my network password. I tried changing the LED brightness setting, too.

The network info is:
SSID: SmartRG-4a8e
Protocol: Wi-Fi 4 (802.11n)
Security type: WPA2-Personal
Network band: 2.4 GHz
Network channel: 1
Link speed (Receive/Transmit): 144/72 (Mbps)
Link-local IPv6 address: fe80::bacd:1521:c6a6:3513%14
IPv4 address: 192.168.0.12
IPv4 DNS servers: 206.248.154.22
206.248.154.170
Manufacturer: Broadcom
Description: Broadcom 802.11n Network Adapter
Driver version: 6.30.223.256
Physical address (MAC): F4-B7-E2-C7-B0-B1

Thank you for any suggestions.

User avatar
zalgon26
 
Posts: 5
Joined: Mon Dec 19, 2022 8:27 pm

Re: Install Adafruit.IO WipperSnapper has javascript error reported in console

Post by zalgon26 »

I tried a different old Windows 10 laptop on an extension of the same network (a signal amplifier to an outbuilding, different SSID), and the wippersnapper install worked. Nothing else changed except perhaps we moved passed the Solstice. Sorry I have no solid information for troubleshooting or changing a particular variable, but luckily I'm moving on.

User avatar
brubell
Learn User Page
 
Posts: 2010
Joined: Fri Jul 17, 2015 10:33 pm

Re: Install Adafruit.IO WipperSnapper has javascript error reported in console

Post by brubell »

Are you able to check the RSSI of the other network? Curious what the level was, in dB, that caused the error.

User avatar
lorennorman
 
Posts: 28
Joined: Wed Mar 04, 2020 12:54 pm

Re: Install Adafruit.IO WipperSnapper has javascript error reported in console

Post by lorennorman »

Hey zalgon26, there's definitely a bug here that you've reported (thank you!), and your fix is one of the only leads we've got so far.

Would you mind doing a little experiment and reporting back? I'd like you to return to the computer where it DIDN'T work and...
1. try it again as before
2. confirm that it is still broken as before
3. open up a private browsing/incognito window (CTRL+SHIFT+N in Chrome)
4. visit the app and try it from there

...and report back whether it works or not. Thank you!

User avatar
lorennorman
 
Posts: 28
Joined: Wed Mar 04, 2020 12:54 pm

Re: Install Adafruit.IO WipperSnapper has javascript error reported in console

Post by lorennorman »

Thank you kd7eir! Couple questions, if you have time:
- did you try it in incognito mode?
- can you recreate the issue and see if there are errors in the Chrome developer console? post anything weird you see in there

We'll get this fixed as soon as we figure out what's going on! Thank you for taking the time!

User avatar
lorennorman
 
Posts: 28
Joined: Wed Mar 04, 2020 12:54 pm

Re: Install Adafruit.IO WipperSnapper has javascript error reported in console

Post by lorennorman »

Hey folks! Sorry for the delay on this.

We've fixed a bug that may have been causing this issue. Would you please try this again and report back if it is still failing? The tool is at:
https://adafruit.github.io/WipperSnappe ... _Uploader/

If it still doesn't work and you'd like to help us track down the bug:
1. Visit the debug version: https://adafruit.github.io/WipperSnappe ... debug=true
2. Click "Show Console" in the bottom right, if you haven't already
3. Open up your browser's Developer Tools

...then paste whatever output you see in the console or developer tools here.

Thank you for the bug reports and the help!

Locked
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.

Return to “Adafruit IO Wippersnapper Beta”