Rasa encounters error while running action form

Hello all,

I have integrated Rasa with MS Teams with the help of ngrok…Normal Messaging works fine…I am able to chat with Bot from Teams…But issue is after certain question where bot asks user to chose “Form A” or “Form B” with the help of buttons. When user selects one form Bot encounters following error. I am using Rasa-Form.

// rasa run command --> rasa run -m models --credentials credentials.yml --endpoints endpoints.yml --enable-api --log-file out.log

— error : 2020-08-07 13:24:23 ERROR rasa.core.processor - Encountered an exception while running action ‘formA_contract_form’. Bot will continue, but the actions events are lost. Please check the logs of your action server for more information.

// action server command --> rasa run actions -vv

— error : Exception occurred while handling uri: ‘http://localhost:5055/webhooks/botframework/webhook’ Traceback (most recent call last): File “xxxx/opt/anaconda3/lib/python3.7/site-packages/sanic/app.py”, line 940, in handle_request handler, args, kwargs, uri, name = self.router.get(request) File “xxxx/opt/anaconda3/lib/python3.7/site-packages/sanic/router.py”, line 411, in get return self._get(request.path, request.method, “”) File “xxxxx/opt/anaconda3/lib/python3.7/site-packages/sanic/router.py”, line 475, in _get raise NotFound(“Requested URL {} not found”.format(url)) sanic.exceptions.NotFound: Requested URL /webhooks/botframework/webhook not found

// endpoint.yml

action_endpoint: url: “http://localhost:5055/webhooks/botframework/webhook

// credentials.yml

botframework: app_id: “12345” app_password: “12345” rasa: url: “http://localhost:5002/api

// ngrok command: ./ngrok http 5005

Please help if anyone got any idea on how to resolve it. Thank you.

Got it working…If anyone is facing same issue make sure ur action endpoint url in “endpoints.yml” is “http://localhost:5055/webhook”…and at azure portal u must have “https://xxxxxxxx.ngrok.io/webhooks/botframework/webhook” in messaging endpoint URL.

1 Like