Cannot get intent from Rasa server

Hi! I installed rasa on the same directory that I have rhasspy and I started running the server. The problem is that I cannot get any intent back from it. I tried changing the intent files but that did not work. Right now, I have the default files of rasa, and they should work. Somehow I just cannot seem to connect to the server propperly.

Error:

[DEBUG:2021-11-04 18:21:03,708] rhasspyserver_hermes: -> HandleToggleOff(site_id='default')
[DEBUG:2021-11-04 18:21:03,735] rhasspyserver_hermes: Publishing 21 bytes(s) to rhasspy/handle/toggleOff
[DEBUG:2021-11-04 18:21:03,736] rhasspyremote_http_hermes: <- HandleToggleOff(site_id='default')
[DEBUG:2021-11-04 18:21:03,741] rhasspyremote_http_hermes: Intent handling disabled
[DEBUG:2021-11-04 18:21:03,749] rhasspyserver_hermes: -> NluQuery(input='hi', site_id='default', id='a8b49f02-f380-4e81-97df-9cb7f459ee55', intent_filter=None, session_id='a8b49f02-f380-4e81-97df-9cb7f459ee55', wakeword_id=None, lang=None, custom_data=None, asr_confidence=None, custom_entities=None)
[DEBUG:2021-11-04 18:21:03,751] rhasspyserver_hermes: Publishing 258 bytes(s) to hermes/nlu/query
[DEBUG:2021-11-04 18:21:03,757] rhasspyrasa_nlu_hermes: <- NluQuery(input='hi', site_id='default', id='a8b49f02-f380-4e81-97df-9cb7f459ee55', intent_filter=None, session_id='a8b49f02-f380-4e81-97df-9cb7f459ee55', wakeword_id=None, lang=None, custom_data=None, asr_confidence=None, custom_entities=None)
[DEBUG:2021-11-04 18:21:03,759] rhasspyrasa_nlu_hermes: http://localhost:5005/model/parse
[ERROR:2021-11-04 18:21:03,775] rhasspyrasa_nlu_hermes: nlu query
Traceback (most recent call last):
  File "/usr/lib/rhasspy/rhasspy-rasa-nlu-hermes/rhasspyrasa_nlu_hermes/__init__.py", line 140, in handle_query
    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: 404, message='Not Found', url=URL('http://localhost:5005/model/parse')
[DEBUG:2021-11-04 18:21:03,779] rhasspyrasa_nlu_hermes: -> NluError(error="404, message='Not Found', url=URL('http://localhost:5005/model/parse')", site_id='default', context='hi', session_id='a8b49f02-f380-4e81-97df-9cb7f459ee55')
[DEBUG:2021-11-04 18:21:03,780] rhasspyrasa_nlu_hermes: Publishing 174 bytes(s) to hermes/error/nlu
[DEBUG:2021-11-04 18:21:03,794] rhasspyserver_hermes: Handling NluError (topic=hermes/error/nlu, id=c8764c39-9463-4e32-b9c2-3bce1c1d9913)
[DEBUG:2021-11-04 18:21:03,795] rhasspyserver_hermes: Handling NluError (topic=hermes/error/nlu, id=2d1aff22-b0ab-43ee-a053-de370db812fd)
[ERROR:2021-11-04 18:21:03,797] rhasspyserver_hermes: NluError(error="404, message='Not Found', url=URL('http://localhost:5005/model/parse')", site_id='default', context='hi', session_id='a8b49f02-f380-4e81-97df-9cb7f459ee55')
[DEBUG:2021-11-04 18:21:03,799] rhasspyserver_hermes: -> HandleToggleOn(site_id='default')
[DEBUG:2021-11-04 18:21:03,803] rhasspyserver_hermes: Publishing 21 bytes(s) to rhasspy/handle/toggleOn
[DEBUG:2021-11-04 18:21:03,805] rhasspyremote_http_hermes: <- HandleToggleOn(site_id='default')
[DEBUG:2021-11-04 18:21:03,805] rhasspyremote_http_hermes: Intent handling enabled
[ERROR:2021-11-04 18:21:03,808] rhasspyserver_hermes: 404, message='Not Found', url=URL('http://localhost:5005/model/parse')
Traceback (most recent call last):
  File "/usr/lib/rhasspy/usr/local/lib/python3.7/site-packages/quart/app.py", line 1821, in full_dispatch_request
    result = await self.dispatch_request(request_context)
  File "/usr/lib/rhasspy/usr/local/lib/python3.7/site-packages/quart/app.py", line 1869, in dispatch_request
    return await handler(**request_.view_args)
  File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/__main__.py", line 1452, in api_text_to_intent
    site_id=site_id,
  File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/__main__.py", line 2706, in text_to_intent_dict
    text, intent_filter=intent_filter, site_id=site_id
  File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/__init__.py", line 530, in recognize_intent
    raise NluException(result.error)
rhasspyserver_hermes.NluException: 404, message='Not Found', url=URL('http://localhost:5005/model/parse')




Found the problem. I had to --enable-api when running rasa :slight_smile:

1 Like