Doubt in rasa form validation

I am using rasa 2.8.0. I have registered a form in my domain.yml as “name_form”. In the, I have a class “ValidateNameForm” which returns name “validate_name_form”. when I run with docker, action server is running and validate_name_form being registered but I’m getting following error:

Encountered an exception while running action ‘name_form’.

my question is, is it important that I create a class with name function that returns “name_form”?

Hi @mangesh! As it says in the docs for forms you can use custom actions to customize your form, e.g. to validate your slots, but if you don’t want to do that, there is also no need to add a class to your

If I misunderstood your question, please let me know and we can try to solve it together!! :sparkles:

Hi @kalkbrennerei thanks for replying, let me show you my code

my question was that I am not returning any name as “name_form” but “validate_name_form”, so would it be right to do that because i got exception in running “name_form” form.

having said that, actually after analysing the action server logs: the actual error that i am getting is

rasa.utils.endpoints.ClientResponseError: 404, Not Found,(some long html…) Requested URL /webhook not found’’ can you please help me with this?

@mangesh did you specify the action_endpoint in your endpoints.yaml?

Yes, my action_endpoint is:

action_endpoint: url: “http://localhost:5005/webhook

and on the frontend javascript it is:

const rasa_server_url = “http://localhost:5005/webhooks/rest/webhook”;

is it right? do you have idea what could be going wrong?

Hmmm, so how did you run the container? did you pass the --endpoints endpoints.yml with docker?

@mangesh Heya! I guess you have seen this video which is perfect in all ways, and if you had used every steps as shown in video, then the cause of error is different.

@mangesh As, I suggested you in previous thread How to solve rasa.utils.endpoints.ClientResponseError? , Just sort your docker-compose file and you are good to go again.

@mangesh I would encourage, try run the code first on local machine (if code is complex) and then on docker. Even you have to manage all the requirement files for

Happy to help you :slight_smile: Have a great coding. If any doubt :wink: we are here. Good Luck! Buddy!