hassio-addons / addon-zwave-js-ui

Z-Wave JS UI - Home Assistant Community Add-ons
https://addons.community
MIT License
124 stars 35 forks source link

Unexpected token '<', "<html> <h"... is not valid JSON prevents ZWaveJS UI from starting #660

Closed landolfi-us closed 3 months ago

landolfi-us commented 4 months ago

Problem/Motivation

I changed a backup cron specification and there may have been a message on the screen about an invalid format but the UI allowed me to save the invalid cron format.

Expected behavior

UI should refuse to save if the cron format is invalid.

Actual behavior

After the invalid specification was saved, a restart of ZwaveJS UI failed repeatedly with the error "Unexpected token '<', " <h"... is not valid JSON"

Steps to reproduce

Put a space at the beginning of a cron specificaton, e.g.: ' 22 10 *'

Proposed changes

Don't allow user to save backup settings that contain a cron specification with a space.

github-actions[bot] commented 3 months ago

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!