What's the issue?
Snips injection fails when JSON message is correct but contains an empty value, or a value with space(s). Injection will work first time, and fail afterwards.
Use Cases Impacted
Injection of unverified data.
How to reproducemosquitto_pub -h localhost -p 1883 -t hermes/injection/perform -m "{\"operations\":[[\"addFromVanilla\",{\"firstname\":[\" \"]}]]}" => will work only once
Expected behavior
The injection is successful the first time, it should be then.
Version and Environment
$ sam --version
0.0.55
$ sam status
OS version ................... Raspbian GNU/Linux 9 (stretch)
snips-analytics .............. (not running)
snips-asr .................... 0.63.3 (running)
snips-audio-server ........... 0.63.3 (running)
snips-dialogue ............... 0.63.3 (running)
snips-hotword ................ 0.63.3 (running)
snips-nlu .................... 0.63.3 (running)
snips-skill-server ........... 0.63.3 (not running)
snips-tts .................... 0.63.3 (running)
What's the issue? Snips injection fails when JSON message is correct but contains an empty value, or a value with space(s). Injection will work first time, and fail afterwards.
Use Cases Impacted Injection of unverified data.
How to reproduce
mosquitto_pub -h localhost -p 1883 -t hermes/injection/perform -m "{\"operations\":[[\"addFromVanilla\",{\"firstname\":[\" \"]}]]}"
=> will work only onceExpected behavior The injection is successful the first time, it should be then.
Version and Environment
Logs
Additional information
Workaround Reboot of the device is not enough, "sam install assistant" will works.