Crash instance at reboot when a scene is configured every-month without hours
quentinlegay opened this issue · comments
Quentin L commented
When a scene is configured every-month without hours, an error message appears, but the scene is still saved. On restart, Gladys crashes.
Error logs :
2024-04-10T20:40:42+0200 index.js:15 (process.) unhandledRejection catched: Promise {
TypeError: Cannot read properties of undefined (reading ‹ substr ›)
at /src/server/lib/scene/scene.addScene.js:45:47
at Array.forEach ()
at SceneManager.addScene (/src/server/lib/scene/scene.addScene.js:36:20)
at /src/server/lib/scene/scene.init.js:22:10
at Array.map ()
at SceneManager.init (/src/server/lib/scene/scene.init.js:20:30)
at Object.start (/src/server/lib/index.js:150:9)
at /src/server/index.js:51:3
}
More infos here : https://community.gladysassistant.com/t/instance-gladys-ko/8825/4
To Reproduce
- Go to scene
- Create a scene with trigger every-month without hours and save it (an error message appear)
- After a restart of Gladys container, instance is crashed