Rhasspy addon intent error

I have Hassio installed with Rhasspy add on and Rhasspy satellite on a RPI 3. I managed to configure the satellite and I can see text recognized in the master (running on Hassio).
On the master I have Rhasspy configured with Intent handling for Home Assistant and I have the URL their as https://xxxxx.duckdns.org:8123
I created a long lived token and add it as it was not filled automatically
I used the same example in this link for the configuration and the problem am seeing in master Rhasspy log is below

[WARNING:2021-03-19 17:53:34,289] rhasspydialogue_hermes: No session for id 1819bbd9-9247-411d-a69f-95c237516f1d. Dropping recognition.
[DEBUG:2021-03-19 17:53:34,291] rhasspyhomeassistant_hermes: https://caha.duckdns.org:8123/api/intent/handle
[ERROR:2021-03-19 17:53:34,375] rhasspyhomeassistant_hermes: handle_home_assistant_intent
Traceback (most recent call last):
  File "/usr/lib/rhasspy/rhasspy-homeassistant-hermes/rhasspyhomeassistant_hermes/__init__.py", line 169, in handle_home_assistant_intent
    response.raise_for_status()
  File "/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 946, in raise_for_status
    headers=self.headers)
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('https://xxxxx.duckdns.org:8123/api/intent/handle')
[ERROR:2021-03-19 17:53:34,376] 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 https://xxxx.duckdns.org:8123
[ERROR:2021-03-19 17:53:34,377] asyncio: SSL error in data received
protocol: <asyncio.sslproto.SSLProtocol object at 0x7fafa42fd860>
transport: <_SelectorSocketTransport fd=12 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
  File "/usr/lib/python3.7/asyncio/sslproto.py", line 526, in data_received
    ssldata, appdata = self._sslpipe.feed_ssldata(data)
  File "/usr/lib/python3.7/asyncio/sslproto.py", line 207, in feed_ssldata
    self._sslobj.unwrap()
  File "/usr/lib/python3.7/ssl.py", line 767, in unwrap
    return self._sslobj.shutdown()
ssl.SSLError: [SSL: KRB5_S_INIT] application data after close notify (_ssl.c:2609)

Anyone ?. I am stuck here so am open to any suggestions

I’m only new at HA and Rhasspy myself, and have the same issue trying to guess what is the correct URL for Intent Handling.

For communication between the HA server and a satellite … since both are on your LAN and hence totally under your control, I am using their LAN IP addresses directly (e.g. http://192.168.1.98:8123/api/intent/handle ) rather than adding a step to lookup a DNS name (the xxxx.duckdns.org in your logs).
Also, I suspect the xxxx part is intended to be changed to your personal value.

I have managed (I don’t know how) to go from a 404 error to a 401 error, which I think is a step forward. I am happy to compare notes/configurations if you wish.

I managed to get this to work, how can I help ?

Through trial and error I have got this


but I can’t get rid of the red [Save and restart required] button.

On rem1 I am getting

[ERROR:2021-05-16 18:25:25,222] rhasspyhomeassistant_hermes: handle_home_assistant_intent
Traceback (most recent call last):
  File "/usr/lib/rhasspy/rhasspy-homeassistant-hermes/rhasspyhomeassistant_hermes/__init__.py", line 169, in handle_home_assistant_intent
    response.raise_for_status()
  File "/usr/lib/rhasspy/usr/local/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://192.168.1.98:8123/api/intent/handle')
[ERROR:2021-05-16 18:25:25,227] 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://192.168.1.98:8123/
[ERROR:2021-05-16 18:25:50,068] rhasspydialogue_hermes: Session timed out for site rem1: rem1-porcupine_raspberry-pi-43141092-047b-4be3-8764-90ebf95640b8

401 error indicates that the URL exists, but that the file being called on the server has incorrect access permissions ? The server is running HASS OS, so I can’t even check it.

How did you get yours working ? change to sending events instead of intents ?

Do you have the line below in your configuration.yaml of HA ?
intent:

Is this a satellite server of the add-on on HA ?.
If it is the former then Intent handling shouldn’t be enabled, if it is the latter use the following URL for hass
http://hassio/homeassistant/