testfeed17
(testfeed.hft#️⃣(💙,🧡))
1
I’m implementing the RASA demo with my webhook API.
Problem
Function run() in custom action process can not be active when having delay time within function occur, How to solve this problem?
def run():
time.sleep(2)
dispatcher.utter_message(text=message)
return []
Thank you
testfeed17
(testfeed.hft#️⃣(💙,🧡))
2
I assume time sleep as my process in function run before dispatch will return a response.
time.sleep(2)
dispatcher.utter_message(text=message)
or
I should move my delay process to the RASA core process part.
testfeed17
(testfeed.hft#️⃣(💙,🧡))
3
this is the last error message in the RASA custom action.
Exception occurred during execution of request <Request: POST /webhook>
sanic.exceptions.ServiceUnavailable: Cancelled
testfeed17
(testfeed.hft#️⃣(💙,🧡))
4
I solved my problem. I move my process to the RASA core part in the output part then can work well.