-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[homebridge-config-ui-x] SyntaxError: Unexpected token % #299
Comments
Had this same issue after upgrading a plugin via the webui. I had to edit my json.config and remove the plugin via NPM to restore functionality. |
I think I know where this is is coming from, 4.4.2 should add a bit more detail to these messages to help figure it out. |
Ok, i updated an: Mai 19 16:53:55 homebridge homebridge[21414]: [2019-5-19 16:53:55] [Broadlink] Klimaanlage Paul addTemperatureCallbackToQueue (requested temperature from device, waiting) |
No change. Are you able to trigger this log from any particular action in the UI? |
Sorry for my bad english. I restart instance 1, go to UI from instance 1 and everything ok. I restart instance 2, i open the UI from instance 2 and ok. i open the UI from instance 1 and the screen from browser is white and the log from instance 1 say: SyntaxError: Unexpected token % |
I have the same problem after updating to the new version |
Same issue: here's some log output from my setup /usr/lib/node_modules/homebridge-config-ui-x/dist/main.js:22227 |
I just got this as well: [homebridge-config-ui-x] SyntaxError: Unexpected token % after logging into the ui-x for the first time, I tried clickign plugins and it triggered that in terminal. I then tried to click config and it wouldn't let me. Clicking log seemed to work, although it was blank... every other button on the menu seemed to throw the error as well -- except restart which gave followed by 3 lines of the unexpected token % error... |
yes, same problem, also with 4.4.3 |
I've not been able to figure this one out. I got it once on a fresh Raspberry Pi install, but as soon as I added some trivial debug code and restarted I could not replicate the problem again, even after reinstalling and removing the debug code. |
How many instaces do you have? i think, this is a problem when you have more than one instances |
One thing you might be able to try is added Then as a second test start Homebridge with the |
ok, i will do it on the next days and i post the logs :-) |
I've found the only function in the code base that was not logging it's error correctly (with a full stack trace). If you try 4.4.4 I think the error should be much more detailed. |
Next thing to try...
|
Yes, thank you very much, the 4.4.5 beta 1 works fine without syntax error. :-D |
I've published 4.4.5. You can upgrade from the beta version in-app. @marcoschmidt79 - if there are still no problems feel free to close this issue 😄 |
I have installed config-ui-x 4.4.1 and node 12.2.0. after upgrading to 4.4.1 i get in 3 out of 8 instances when calling the web interface the following error message in the log
Mai 17 19:38:59 homebridge homebridge[25119]: [2019-5-17 19:38:59] [homebridge-config-ui-x] SyntaxError: Unexpected token %
Mai 17 19:38:59 homebridge homebridge[25119]: [2019-5-17 19:38:59] [homebridge-config-ui-x] SyntaxError: Unexpected token %
Mai 17 19:39:00 homebridge homebridge[25119]: [2019-5-17 19:39:00] [homebridge-config-ui-x] SyntaxError: Unexpected token %
Mai 17 19:39:01 homebridge homebridge[25119]: [2019-5-17 19:39:01] [homebridge-config-ui-x] SyntaxError: Unexpected token %
The text was updated successfully, but these errors were encountered: