rasa run actions command not showing the list of “actions” and not running the custom action
Hey @Chaitanya! Can you share your code for actions
and your domain
file? I can take a look if you do
Hi @tyd, Thanks for the response.
from future import absolute_import
from future import division
from future import unicode_literals
from rasa_core_sdk import Action
from rasa_core_sdk.events import SlotSet
import io
from PIL import Image
import json
import jsonpickle
from json_tricks import dumps
class ActionNoOfDbs(Action):
def name(self):
return 'action_no_of_dbs'
def run(self, dispatcher, tracker, domain):
app = tracker.get_slot('app')
response = "5 databases with 20 schemas"
dispatcher.utter_message(response)
return [SlotSet("app", app)]
class ActionCriticality(Action):
def name(self):
return 'action_criticality'
def run(self, dispatcher, tracker, domain):
app = tracker.get_slot('app')
response = "Do you need to know business or infra"
dispatcher.utter_message(response)
return [SlotSet("app", app)]
class ActionAccessManagement(Action):
def name(self):
return 'action_access_management'
def run(self, dispatcher, tracker, domain):
app = tracker.get_slot('app')
response = "Business user access is done via BURA"
dispatcher.utter_message(response)
return [SlotSet("app", app)]
class Actionno_of_apps(Action):
def name(self):
return 'action_no_of_apps'
def run(self, dispatcher, tracker, domain):
response = "21 applications are currently using BURA for access management "
dispatcher.utter_message(response)
return []
What about your domain
file?
Some other information that would be helpful to know:
- What version of Rasa are you running?
- Are you able to stand up your rasa bot and then when an utterance comes in to get an error something along the lines of
Failed to run custom action 'X'. Couldn't connect to the server at 'http://localhost:5055/webhook'. Is the server running? Error: Cannot connect to host localhost:5055 ssl:None [Connection refused]
when you send a message to it?
And here some other questions from the community about problems with actions that might help you with debugging:
"(tensorflow) D:\Work\Data_Science\Projects\Weatherbot\rasabot>rasa run actions & rasa shell 2020-01-25 13:16:28.503392: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_100.dll 2020-01-25 13:16:30 INFO rasa_sdk.endpoint - Starting action endpoint server… 2020-01-25 13:16:30 INFO rasa_sdk.executor - Registered function for ‘find_facility_types’. 2020-01-25 13:16:30 INFO rasa_sdk.executor - Registered function for ‘find_healthcare_address’. 2020-01-25 13:16:30 INFO rasa_sdk.executor - Registered function for ‘facility_form’. "
No errors. It’s just stuck here. Can you help?
Even am facing the same issue. Can anyone help me with this.
No error messages. It’s basically stuck after I run the command.
@anilbg189 @Ritaprava95 What versions of Rasa are you running? Can each of you also elaborate a bit more on your problems?