Unexpected token '<', "<html> <h"... is not valid JSON prevents ZWaveJS UI from starting
landolfi-us opened this issue · 1 comments
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.
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!