Would like to request a help for this error: raise RasaException(“Failed to execute custom action.”)
These are the following things I have done to the original Rasa files:
Edited nlu.yml
Edited stories.yml
Edited domain.yml
Re-train rasa model by running “rasa train”
Run the rasa server by running “rasa run actions”
Start the chartbot by running “rasa shell”
There is nothing wrong from step 1 to 6, until when I key in my input using the intent I have put into nlu.yml, the response it the following error:
Traceback (most recent call last):
File “c:\users\65867\desktop\rasa\venv\lib\site-packages\rasa\core\processor.py”, line 772, in _run_action
events = await action.run(
File “c:\users\65867\desktop\rasa\venv\lib\site-packages\rasa\core\actions\action.py”, line 709, in run
raise RasaException(“Failed to execute custom action.”) from e
rasa.shared.exceptions.RasaException: Failed to execute custom action.
@nik202, my actions.py is commented with default actions only. Actually I only rename the name of the intent and the content of the responses to nlu.yml, domain.yml & stories.yml.
@cleong008 If you are not using action.py then why you running the actions by command rasa run actions?
@cleong008 we run rasa run actions when we create some custom actions or some code by our own, which fetch the information from rasa server to Rasa SDK server.
rasa server runs on localhost:5005 and Rasa SDK runs on localhost:5055.
@cleong008
Just run rasa shell after rasa train you will be fine and your bot will chat with you, a basic mood bot.
I would encourage you please see the document of rasa in detail. It will clear your thoughts and some doubts.
@nik202 Thank you for your reply, initially I didn’t run “rasa run actions”, I only run “rasa shell” after “rasa train” based on the documentation and also the Udemy course I am taking by Rasa. But, the error pops up “Failed to run custom action”. Couldn’t connect to the server at ‘http://localhost:5055/webhook’.". That’s why I start to run “rasa run actions”.
@cleong008 see you are using Exercise_name1 as custom action, may be in your story or rules you have mention this under action, that’s why he is throwing you error. If you have not created this in action.py; delete this and you will be fine.
@nik202 Sorry to ask you one more question. I understand that Rasa supports python 3.6 and python 3.7. I am using python 3.8 now, will this creates any negative impact?