I’m getting error when I do a post request to Rasa.
The error is:
The model predicted the custom action ‘action_goals’, but you didn’t configure an endpoint to run this custom action. Please take a look at the docs and set an endpoint configuration via the --endpoints flag. Actions
To load my server:
rasa run --enable-api -m policiesTranslator_julio2020/models/20200722-190540.tar.gz --debug --endpoints policiesTranslator_julio2020/endpoints.yml
I’m totally blocked with this issue, the ERROR message is asking me to configure an endpoint but I’m supposed to be done with such configuration… Any help will be much appreciated!
hey have you solved this issue . i am also getting the same error . Even after configuring the endpoints.yml file still asking me to configure …
i am deploying rasa action and rasa server on heroku
This is a simple example for a custom action which utters “Hello World!”
from typing import Any, Text, Dict, List
from rasa_sdk import Action, Tracker
from rasa_sdk.executor import CollectingDispatcher
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
class ActionSubmit(Action):
def name(self) → Text:
return “action_submit”
dispatcher.utter_message(text="thanks for providing the details, We have sent you a mail at {}".format(tracker.get_slot("email")))
return []
def SendEmail(toaddr, subject, message):
fromaddr = "worldac2017@gmail.com"
# instance of MIMEMultipart
msg = MIMEMultipart()
# storing the senders email address
msg['From'] = fromaddr
# storing the receivers email address
msg['To'] = toaddr
# storing the subject
msg['Subject'] = subject
# string to store the body of the mail
body = message
# attach the body with the msg instance
msg.attach(MIMEText(body, 'plain'))
s = smtplib.SMTP('smtp.gmail.com', 587)
s.starttls()
# Authentication
try:
s.login(fromaddr, "ustad5042141ZMEE&&H&")
# Converts the Multipart msg into a string
text = msg.as_string()
# sending the mail
s.sendmail(fromaddr, toaddr, text)
except:
print("An Error occured while sending email.")
finally:
# terminating the session
s.quit()