HA and Rhasspy issue: AssertionError: No response

Hi all,
I am trying to set up Rhasspy with HA and Node Red. When testing out a first intent, it doesn’t seem to work. The error I get is “AssertionError: No response from http://homeassistant.local:8123”. However, when booting it seems that Rhasspy connects to the MQTT broker just fine. I have seen some previous threads on this, but the solutions (if any) provided in those do not seem to change anything on my end. Any thoughts?

Thanks in advance!

The full log is as follows:

[DEBUG:2023-05-02 20:09:45,475] rhasspyserver_hermes: -> NluQuery(input='turn the lights in the livingroom off', site_id='Rhasspy', id='384727c4-c658-48a0-a71f-918571a0ab1a', intent_filter=None, session_id='384727c4-c658-48a0-a71f-918571a0ab1a', wakeword_id=None, lang=None, custom_data=None, asr_confidence=None, custom_entities=None)
[DEBUG:2023-05-02 20:09:45,476] rhasspyserver_hermes: Publishing 293 bytes(s) to hermes/nlu/query
[DEBUG:2023-05-02 20:09:45,483] rhasspynlu_hermes: <- NluQuery(input='turn the lights in the livingroom off', site_id='Rhasspy', id='384727c4-c658-48a0-a71f-918571a0ab1a', intent_filter=None, session_id='384727c4-c658-48a0-a71f-918571a0ab1a', wakeword_id=None, lang=None, custom_data=None, asr_confidence=None, custom_entities=None)
[DEBUG:2023-05-02 20:09:45,490] rhasspynlu_hermes: -> NluIntentParsed(input='turn the lights in the light.livinigroom off', intent=Intent(intent_name='ChangeLightState', confidence_score=1.0), site_id='Rhasspy', id='384727c4-c658-48a0-a71f-918571a0ab1a', slots=[Slot(entity='entity', value={'kind': 'Unknown', 'value': 'light.livinigroom'}, slot_name='entity', raw_value='livingroom', confidence=1.0, range=SlotRange(start=23, end=40, raw_start=23, raw_end=33)), Slot(entity='state', value={'kind': 'Unknown', 'value': 'off'}, slot_name='state', raw_value='off', confidence=1.0, range=SlotRange(start=41, end=44, raw_start=34, raw_end=37))], session_id='384727c4-c658-48a0-a71f-918571a0ab1a')
[DEBUG:2023-05-02 20:09:45,490] rhasspynlu_hermes: Publishing 663 bytes(s) to hermes/nlu/intentParsed
[DEBUG:2023-05-02 20:09:45,504] rhasspynlu_hermes: -> NluIntent(input='turn the lights in the light.livinigroom off', intent=Intent(intent_name='ChangeLightState', confidence_score=1.0), site_id='Rhasspy', id='384727c4-c658-48a0-a71f-918571a0ab1a', slots=[Slot(entity='entity', value={'kind': 'Unknown', 'value': 'light.livinigroom'}, slot_name='entity', raw_value='livingroom', confidence=1.0, range=SlotRange(start=23, end=40, raw_start=23, raw_end=33)), Slot(entity='state', value={'kind': 'Unknown', 'value': 'off'}, slot_name='state', raw_value='off', confidence=1.0, range=SlotRange(start=41, end=44, raw_start=34, raw_end=37))], session_id='384727c4-c658-48a0-a71f-918571a0ab1a', custom_data=None, asr_tokens=[[AsrToken(value='turn', confidence=1.0, range_start=0, range_end=4, time=None), AsrToken(value='the', confidence=1.0, range_start=5, range_end=8, time=None), AsrToken(value='lights', confidence=1.0, range_start=9, range_end=15, time=None), AsrToken(value='in', confidence=1.0, range_start=16, range_end=18, time=None), AsrToken(value='the', confidence=1.0, range_start=19, range_end=22, time=None), AsrToken(value='light.livinigroom', confidence=1.0, range_start=23, range_end=40, time=None), AsrToken(value='off', confidence=1.0, range_start=41, range_end=44, time=None)]], asr_confidence=None, raw_input='turn the lights in the livingroom off', wakeword_id=None, lang=None)
[DEBUG:2023-05-02 20:09:45,505] rhasspynlu_hermes: Publishing 1417 bytes(s) to hermes/intent/ChangeLightState
[DEBUG:2023-05-02 20:09:45,532] rhasspyserver_hermes: <- NluIntent(input='turn the lights in the light.livinigroom off', intent=Intent(intent_name='ChangeLightState', confidence_score=1.0), site_id='Rhasspy', id='384727c4-c658-48a0-a71f-918571a0ab1a', slots=[Slot(entity='entity', value={'kind': 'Unknown', 'value': 'light.livinigroom'}, slot_name='entity', raw_value='livingroom', confidence=1.0, range=SlotRange(start=23, end=40, raw_start=23, raw_end=33)), Slot(entity='state', value={'kind': 'Unknown', 'value': 'off'}, slot_name='state', raw_value='off', confidence=1.0, range=SlotRange(start=41, end=44, raw_start=34, raw_end=37))], session_id='384727c4-c658-48a0-a71f-918571a0ab1a', custom_data=None, asr_tokens=[[AsrToken(value='turn', confidence=1.0, range_start=0, range_end=4, time=None), AsrToken(value='the', confidence=1.0, range_start=5, range_end=8, time=None), AsrToken(value='lights', confidence=1.0, range_start=9, range_end=15, time=None), AsrToken(value='in', confidence=1.0, range_start=16, range_end=18, time=None), AsrToken(value='the', confidence=1.0, range_start=19, range_end=22, time=None), AsrToken(value='light.livinigroom', confidence=1.0, range_start=23, range_end=40, time=None), AsrToken(value='off', confidence=1.0, range_start=41, range_end=44, time=None)]], asr_confidence=None, raw_input='turn the lights in the livingroom off', wakeword_id=None, lang=None)
[DEBUG:2023-05-02 20:09:45,533] rhasspyserver_hermes: Handling NluIntent (topic=hermes/intent/ChangeLightState, id=6f58f300-43c5-43e9-bbc0-45877652df20)
[DEBUG:2023-05-02 20:09:45,535] rhasspydialogue_hermes: <- NluIntent(input='turn the lights in the light.livinigroom off', intent=Intent(intent_name='ChangeLightState', confidence_score=1.0), site_id='Rhasspy', id='384727c4-c658-48a0-a71f-918571a0ab1a', slots=[Slot(entity='entity', value={'kind': 'Unknown', 'value': 'light.livinigroom'}, slot_name='entity', raw_value='livingroom', confidence=1.0, range=SlotRange(start=23, end=40, raw_start=23, raw_end=33)), Slot(entity='state', value={'kind': 'Unknown', 'value': 'off'}, slot_name='state', raw_value='off', confidence=1.0, range=SlotRange(start=41, end=44, raw_start=34, raw_end=37))], session_id='384727c4-c658-48a0-a71f-918571a0ab1a', custom_data=None, asr_tokens=[[AsrToken(value='turn', confidence=1.0, range_start=0, range_end=4, time=None), AsrToken(value='the', confidence=1.0, range_start=5, range_end=8, time=None), AsrToken(value='lights', confidence=1.0, range_start=9, range_end=15, time=None), AsrToken(value='in', confidence=1.0, range_start=16, range_end=18, time=None), AsrToken(value='the', confidence=1.0, range_start=19, range_end=22, time=None), AsrToken(value='light.livinigroom', confidence=1.0, range_start=23, range_end=40, time=None), AsrToken(value='off', confidence=1.0, range_start=41, range_end=44, time=None)]], asr_confidence=None, raw_input='turn the lights in the livingroom off', wakeword_id=None, lang=None)
[WARNING:2023-05-02 20:09:45,536] rhasspydialogue_hermes: No session for id 384727c4-c658-48a0-a71f-918571a0ab1a. Dropping recognition.
[DEBUG:2023-05-02 20:09:45,537] rhasspyhomeassistant_hermes: <- NluIntent(input='turn the lights in the light.livinigroom off', intent=Intent(intent_name='ChangeLightState', confidence_score=1.0), site_id='Rhasspy', id='384727c4-c658-48a0-a71f-918571a0ab1a', slots=[Slot(entity='entity', value={'kind': 'Unknown', 'value': 'light.livinigroom'}, slot_name='entity', raw_value='livingroom', confidence=1.0, range=SlotRange(start=23, end=40, raw_start=23, raw_end=33)), Slot(entity='state', value={'kind': 'Unknown', 'value': 'off'}, slot_name='state', raw_value='off', confidence=1.0, range=SlotRange(start=41, end=44, raw_start=34, raw_end=37))], session_id='384727c4-c658-48a0-a71f-918571a0ab1a', custom_data=None, asr_tokens=[[AsrToken(value='turn', confidence=1.0, range_start=0, range_end=4, time=None), AsrToken(value='the', confidence=1.0, range_start=5, range_end=8, time=None), AsrToken(value='lights', confidence=1.0, range_start=9, range_end=15, time=None), AsrToken(value='in', confidence=1.0, range_start=16, range_end=18, time=None), AsrToken(value='the', confidence=1.0, range_start=19, range_end=22, time=None), AsrToken(value='light.livinigroom', confidence=1.0, range_start=23, range_end=40, time=None), AsrToken(value='off', confidence=1.0, range_start=41, range_end=44, time=None)]], asr_confidence=None, raw_input='turn the lights in the livingroom off', wakeword_id=None, lang=None)
[DEBUG:2023-05-02 20:09:45,538] rhasspyserver_hermes: Sent 912 char(s) to websocket
[DEBUG:2023-05-02 20:09:45,540] rhasspyserver_hermes: Sent 912 char(s) to websocket
[DEBUG:2023-05-02 20:09:45,551] rhasspyhomeassistant_hermes: http://homeassistant.local:8123/api/intent/handle
[ERROR:2023-05-02 20:09:45,572] rhasspyhomeassistant_hermes: handle_home_assistant_intent
Traceback (most recent call last):
  File "/usr/lib/rhasspy/rhasspy-homeassistant-hermes/rhasspyhomeassistant_hermes/__init__.py", line 173, in handle_home_assistant_intent
    response.raise_for_status()
  File "/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 1005, in raise_for_status
    headers=self.headers,
aiohttp.client_exceptions.ClientResponseError: 401, message='Unauthorized', url=URL('http://homeassistant.local:8123/api/intent/handle')
[ERROR:2023-05-02 20:09:45,574] rhasspyhomeassistant_hermes: handle_intent
Traceback (most recent call last):
  File "/usr/lib/rhasspy/rhasspy-homeassistant-hermes/rhasspyhomeassistant_hermes/__init__.py", line 88, in handle_intent
    assert response_dict, f"No response from {self.url}"
AssertionError: No response from http://homeassistant.local:8123