# Doubt in rasa form validation

**URL:** <https://forum.rasa.com/t/doubt-in-rasa-form-validation/46052>\
**Category:** Rasa Open Source\
**Created:** [July 23, 2021, 5:35am UTC](https://forum.rasa.com/t/doubt-in-rasa-form-validation/46052 "2021-07-23T05:35:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mangesh](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@mangesh](https://forum.rasa.com/u/mangesh)\
**Post date:** [July 23, 2021, 5:35am UTC](https://forum.rasa.com/t/doubt-in-rasa-form-validation/46052/1 "2021-07-23T05:35:01Z")

</div>

I am using rasa 2.8.0. I have registered a form in my domain.yml as “name\_form”. In the action.py, 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”?

---

<div class="post-metadata">

**Author:** ![kalkbrennerei](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/kalkbrennerei/32/11609_2.png) [@kalkbrennerei](https://forum.rasa.com/u/kalkbrennerei)\
**Post date:** [July 23, 2021, 10:10am UTC](https://forum.rasa.com/t/doubt-in-rasa-form-validation/46052/2 "2021-07-23T10:10:22Z")

</div>

Hi @mangesh! As it says in the [docs for forms](https://rasa.com/docs/rasa/forms/#advanced-usage) 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 `actions.py`.

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

---

<div class="post-metadata">

**Author:** ![mangesh](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@mangesh](https://forum.rasa.com/u/mangesh)\
**Post date:** [July 23, 2021, 10:17am UTC](https://forum.rasa.com/t/doubt-in-rasa-form-validation/46052/3 "2021-07-23T10:17:57Z")

</div>

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

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/0/a/0a93e63901939b7e61850a424739580440b4eff9.png)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?

---

<div class="post-metadata">

**Author:** ![kalkbrennerei](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/kalkbrennerei/32/11609_2.png) [@kalkbrennerei](https://forum.rasa.com/u/kalkbrennerei)\
**Post date:** [July 23, 2021, 10:49am UTC](https://forum.rasa.com/t/doubt-in-rasa-form-validation/46052/4 "2021-07-23T10:49:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mangesh](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@mangesh](https://forum.rasa.com/u/mangesh)\
**Post date:** [July 23, 2021, 10:52am UTC](https://forum.rasa.com/t/doubt-in-rasa-form-validation/46052/5 "2021-07-23T10:52:33Z")

</div>

Yes, my action\_endpoint is:

> action\_endpoint: url: “[http://localhost:5005/webhook](http://localhost:5005/webhook)”

and on the frontend javascript it is:

> const rasa\_server\_url = “[http://localhost:5005/webhooks/rest/webhook](http://localhost:5005/webhooks/rest/webhook)”;

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

---

<div class="post-metadata">

**Author:** ![kalkbrennerei](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/kalkbrennerei/32/11609_2.png) [@kalkbrennerei](https://forum.rasa.com/u/kalkbrennerei)\
**Post date:** [July 23, 2021, 11:11am UTC](https://forum.rasa.com/t/doubt-in-rasa-form-validation/46052/6 "2021-07-23T11:11:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [July 23, 2021, 11:56am UTC](https://forum.rasa.com/t/doubt-in-rasa-form-validation/46052/7 "2021-07-23T11:56:08Z")

</div>

@mangesh Heya! I guess you have seen this video [https://youtu.be/CKn4ZBh9PpY](https://youtu.be/CKn4ZBh9PpY) 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?](http://forum.rasa.com/t/how-to-solve-rasa-utils-endpoints-clientresponseerror/46066) , 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 action.py

Happy to help you 🙂 Have a great coding. If any doubt 😉 we are here. Good Luck! Buddy!
