[newbie]the component didn't respond in a timely manner


#1

Dear All,
I know this question has been asked lots of times but I can’t find an answer in the forum.
I made a kind of “hello world”-app based on the documentation. It has two intents:
lightsTurnOn and lightsTurnOff. There is a slot “house_room”. The strange thing is when I ask “lights on in the bureau”, snips recognizes this and says “Turning on lights in the bureau”, however when I use the other action and ask “lights off in the bureau” I get
from sam watch:
[14:25:19] [Nlu] detected intent hugocoolens:lightsTurnOff with probability 1.000 for input “lights off in the bureau”
Slots ->
house_room -> bureau (confidence: 1.000)
[14:25:19] [Dialogue] New intent detected hugocoolens:lightsTurnOff with probability 1.000
Slots ->
house_room -> bureau (confidence: 1.000)
[14:25:24] [Dialogue] session with id ‘69cfdd47-0399-4485-90a8-b6281de39e2b’ was ended on site default. The session was ended because one of the component didn’t respond in a timely manner

This is what I see in /var/log/syslog:
Jan 22 14:50:19 snips snips-asr[27183]: INFO:snips_asr_lib::asr : decoded: [Recognition { decoded_string: “lights off in the bureau”, likelihood: 0.9938467, tokens: Some([Token { value: “lights”, confidence: 1.0, time: (0.0, 1.17), range: 0…6 }, Token { value: “off”, confidence: 1.0, time: (1.17, 1.4699999), range: 7…10 }, Token { value: “in”, confidence: 0.96961, time: (1.4699999, 1.4990882), range: 11…13 }, Token { value: “the”, confidence: 1.0, time: (1.4990882, 1.77), range: 14…17 }, Token { value: “bureau”, confidence: 1.0, time: (1.77, 2.9399998), range: 18…24 }]) }]
Jan 22 14:50:19 snips snips-asr[27183]: INFO:snips_asr_hermes : Cleanup
Jan 22 14:50:19 snips snips-asr[27183]: INFO:snips_asr_hermes : Preparing decoder
Jan 22 14:50:19 snips snips-audio-server[27186]: INFO:snips_audio_portaudio : Playing “de3be85b-dff0-42c1-9530-64d014115d98” using output “default”, wav spec: WavSpec { channels: 2, sample_rate: 22050, bits_per_sample: 16, sample_format: Int }
Jan 22 14:50:19 snips snips-asr[27183]: INFO:snips_asr_hermes : Idle
Jan 22 14:50:20 snips snips-audio-server[27186]: INFO:snips_audio_portaudio : Playing of “de3be85b-dff0-42c1-9530-64d014115d98” finished
Jan 22 14:50:20 snips snips-tts[27163]: WARN:snips_tts_hermes : Received a “play finished” message from audio server with an unknown id ‘de3be85b-dff0-42c1-9530-64d014115d98’. It could be normal if you have more than one audio server.
Jan 22 14:50:26 snips snips-dialogue[27159]: INFO:snips_dialogue_lib::coordinator::coordinator: Session [67f717b6-0e9a-4f0c-bb7d-edf5c78af0ef]: closing session which was active: Timeout
Jan 22 14:50:26 snips snips-dialogue[27159]: INFO:snips_dialogue_lib::coordinator::coordinator: Site [default]: reset site -> turn off ASR and turn on Hotword
Jan 22 14:50:26 snips snips-hotword[27162]: INFO:snips_hotword_lib::audio : Audio thread for site default started.

Can anyone help me further?
kind regards,
hugo


#2

What’s your action code? Please add it here as preformatted text (Ctrl+Shift+C) for readability.


#4

What’s your action code? Please add it here as preformatted text (Ctrl+Shift+C) for readability.
As I am not able to copy the code formatted here, I have inserted a link to it
https://www.dropbox.com/s/ugn6ymn4w3yk24r/action-hugocoolens-lightsTurnOff-hugocoolens.lettherebelight.py?dl=1

kind regards,
Hugo


#5

There’s a typo in line 32:

f len(intentMessage.slots.house_room) > 0:

should be:

if len(intentMessage.slots.house_room) > 0:

#6

Thank you so much for pointing this out. I’m not worthy…

hugo
p.s. I don’t get how to copy and paste formatted here. I am working on a Linux-desktop,
I can copy the code e.g. in Geany but I should paste it formatted here?


#7

You can just paste your code here, select it and press Ctrl+Shift+C. This indents all lines by 4 characters. The forum interprets it as preformatted text then. But for larger code you can use pastebin, Dropbox and so on and just refer to the link here.


#8

By the way, normally you should have seen a syntax error in /var/log/syslog when you restarted snips-skill-server to load your code. If you change your code, always make a habit of checking /var/log/syslog right after loading it.