Traceback (most recent call last): rasa_1 | File “/build/lib/python3.6/site-packages/rasa/core/actions/action.py”, line 549, in run rasa_1 | json=json_body, method=“post”, timeout=DEFAULT_REQUEST_TIMEOUT rasa_1 | File “/usr/local/lib/python3.6/asyncio/coroutines.py”, line 110, in next rasa_1 | return self.gen.send(None) rasa_1 | File “/build/lib/python3.6/site-packages/rasa/utils/endpoints.py”, line 150, in request rasa_1 | resp.status, resp.reason, await resp.content.read() rasa_1 | rasa.utils.endpoints.ClientResponseError: 404, Not Found, body=‘b’ {“error”:“No registered action found for name ‘action_clients’.”,“action_name”:“action_clients”}’’ rasa_1 | rasa_1 | The above exception was the direct cause of the following exception: rasa_1 | rasa_1 | Traceback (most recent call last): rasa_1 | File “/build/lib/python3.6/site-packages/rasa/core/processor.py”, line 599, in _run_action rasa_1 | events = await action.run(output_channel, nlg, tracker, self.domain) rasa_1 | File “/usr/local/lib/python3.6/asyncio/coroutines.py”, line 110, in next rasa_1 | return self.gen.send(None) rasa_1 | File “/build/lib/python3.6/site-packages/rasa/core/actions/action.py”, line 572, in run rasa_1 | raise Exception(“Failed to execute custom action.”) from e rasa_1 | Exception: Failed to execute custom action. rasa_1 | 2020-03-06 06:19:10 DEBUG rasa.core.processor - Action ‘action_clients’ ended with events ‘[]’.
from rasa_sdk import Action, Tracker
from rasa_sdk.executor import CollectingDispatcher
from rasa_sdk.events import SlotSet, AllSlotsReset, ConversationPaused, ConversationResumed
from rasa_sdk.forms import FormAction
from flask import Flask, render_template
class ActionClients(Action):
def name(self) -> Text:
return "action_clients"
def run(self, dispatcher: CollectingDispatcher,
tracker: Tracker,
domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
csv_intents = data['Intents']
csv_responses = data['Responses']
rasa_intent=tracker.latest_message['intent'].get('name')
for i in csv_intents.index:
if rasa_intent == data['Intents'][i]:
dispatcher.utter_message(data['Responses'][i])
# data = csv.to_json()
# print(data)
return []
So I proceeded to install rasa 1.4.6 but when trying to start the server, faced the same error… could not load model.
When I checked from Python shell:
Hello I have the same issue. I have rasa 1.10.0 and rasa-sdk 1.10.1 . Did you find a way to resolve this? This happens only to my new custom actions which I made two days ago. All the other custom actions work perfect as they used to.