Hey, i am unable to fix this error even after changing the DEFAULT_STREAM_READING_TIMEOUT_IN_SECONDS configuration.
Error message:
Task exception was never retrieved future: <Task finished name=‘Task-2’ coro=<configure_app..run_cmdline_io() done, defined at /Users/riapinjani/opt/anaconda3/lib/python3.8/site-packages/rasa/core/run.py:133> exception=TimeoutError()>
@ria.pinjani This is usually caused by a custom action which takes too long. What’s your custom action doing?
class TransferForm(FormAction):
def name(self):
return "transfer_form"
@staticmethod
def required_slots(tracker):
if tracker.get_slot("PERSON") == True:
return("amount_of_money")
else:
return("PERSON", "amount_of_money")
def submit(
self,
dispatcher: CollectingDispatcher,
tracker: Tracker,
#domain: Dict[Text, Any],
) -> List[Dict]:
return []
def slot_mappings(self) -> Dict[Text, Union[Dict, List[Dict]]]:
return {
"PERSON": [
self.from_entity(entity = "PERSON"),
self.from_intent(intent = "deny", value = None)
],
"amount_of_money": [
self.from_entity(entity = "amount_of_money"),
self.from_intent(intent = "deny", value = None)
]
}
class BalanceForm(FormAction):
def name(self):
return "balance_form"
@staticmethod
def required_slots(tracker):
if tracker.get_slot("credit_card") == True:
return()
else:
return("credit_card")
def submit(
self,
dispatcher: CollectingDispatcher,
tracker: Tracker,
domain: Dict[Text, Any],
) -> List[Dict]:
return []
def slot_mappings(self) -> Dict[Text, Union[Dict, List[Dict]]]:
return {
"credit_card": [
self.from_entity(entity = "credit_card"),
self.from_intent(intent = "deny", value = None)
]
}
the error occurs even if actions.py is empty
asyncio - Task exception was never retrieved
future: <Task finished name=‘Task-2’ coro=<configure_app..run_cmdline_io() done, defined at /Users/riapinjani/opt/anaconda3/lib/python3.8/site-packages/rasa/core/run.py:133> exception=TimeoutError()>
Traceback (most recent call last):
File “/Users/riapinjani/opt/anaconda3/lib/python3.8/site-packages/rasa/core/run.py”, line 137, in run_cmdline_io
await console.record_messages(
File “/Users/riapinjani/opt/anaconda3/lib/python3.8/site-packages/rasa/core/channels/console.py”, line 182, in record_messages
async for response in bot_responses:
File “/Users/riapinjani/opt/anaconda3/lib/python3.8/site-packages/rasa/core/channels/console.py”, line 137, in send_message_receive_stream
async for line in resp.content:
File “/Users/riapinjani/opt/anaconda3/lib/python3.8/site-packages/aiohttp/streams.py”, line 39, in anext
rv = await self.read_func()
File “/Users/riapinjani/opt/anaconda3/lib/python3.8/site-packages/aiohttp/streams.py”, line 328, in readline
await self._wait(‘readline’)
File “/Users/riapinjani/opt/anaconda3/lib/python3.8/site-packages/aiohttp/streams.py”, line 296, in _wait
await waiter
File “/Users/riapinjani/opt/anaconda3/lib/python3.8/site-packages/aiohttp/helpers.py”, line 596, in exit
raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError