Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom action issue #94

Open
Rajatkhatri7 opened this issue Jan 29, 2021 · 2 comments
Open

Custom action issue #94

Rajatkhatri7 opened this issue Jan 29, 2021 · 2 comments

Comments

@Rajatkhatri7
Copy link

Rajatkhatri7 commented Jan 29, 2021

To get the list of vendors i defined the new action vendor in action.py. But on putting the query after retraining the model its showing no registered actions for action_vendor.

  • Error
`ERROR    rasa.core.processor  - Encountered an exception while running action 'action_vendor'.Bot will continue, but the actions events are lost. Please check the logs of your action server for more information.
Traceback (most recent call last):
  File "/home/kush/.local/lib/python3.8/site-packages/rasa/core/actions/action.py", line 670, in run
    response = await self.action_endpoint.request(
  File "/home/kush/.local/lib/python3.8/site-packages/rasa/utils/endpoints.py", line 154, in request
    raise ClientResponseError(
rasa.utils.endpoints.ClientResponseError: 404, Not Found, body='b'{"error":"No registered action found for name \'action_vendor\'.","action_name":"action_vendor"}''
  • defined action
class ActionVendor(Action):

    def name(self):
        return "action_vendor"

    def run(self, dispatcher, tracker, domain):
        vendors = tracker.get_slot("vendor_list")
        formatted_vendors = "\n" + "\n".join(
            [f"- {vendor}" for vendor in vendors]
        ) 
        dispatcher.utter_message(
            template="utter_vendors",
            formatted_vendors=formatted_vendors,
        )
        return []
@sara-tagger
Copy link

Thanks for the issue, @degiz will get back to you about it soon!

You may find help in the docs and the forum, too 🤗

@indam23
Copy link
Contributor

indam23 commented Feb 2, 2021

What do the logs of your action server show?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants