openshwprojects / OpenBK7231T_App

Open source firmware (Tasmota/Esphome replacement) for BK7231T, BK7231N, BL2028N, T34, XR809, W800/W801, W600/W601, BL602 and LN882H
https://openbekeniot.github.io/webapp/devicesList.html
1.48k stars 276 forks source link

SyntaxError: Unexpected token '<' #178

Closed NickLplus closed 2 years ago

NickLplus commented 2 years ago

The device (Gosund Smart Switch SW5) works, chipset is BK7231T (as displayed on /cfg page at the bottom), but when clicking "Config" in the web interface, and after that "Launch Web Application" Config page of the /app shows:

Build: Build on Jul 11 2022 14:01:32 version 1.6.8 Chipset: Error: SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

OTA doesn't work, too; "Chipset:" field on OTA page is empty.

Anything that I can do other than removing the devices from the wall and trying to flash them from scratch? ;)

pretoriano80 commented 2 years ago

This is fixed by this PR ,but it was not merged yet by @openshwprojects .

openshwprojects commented 2 years ago

Thank you for mentioning @pretoriano80 , it must have slipped my atention. Merged now.

NickLplus commented 2 years ago

While the syntax error is gone, chipset isn't recognized and OTA is still greyed out Screenshot from 2022-09-03 09-43-41