Hi everyone
I haven’t been using rasa interactive
for some time, during which I updated rasa version as well as some parts of the project, so it’s hard for me to connect the problem to a particular reason.
Anyway, the problem is that when I run rasa interactive
I get an error
2023-10-10 16:39:26 INFO root - Rasa server is up and running.
Bot loaded.
Type a message and press enter (press 'Ctrl-c' to exit).
2023-10-10 16:39:26 ERROR rasa.server - An unexpected error occurred. Error: 'NoneType' object has no attribute 'send_response'
2023-10-10 16:39:26 ERROR rasa.core.training.interactive - An exception occurred while recording messages.
Traceback (most recent call last):
File "/venv/lib/python3.10/site-packages/rasa/core/training/interactive.py", line 1517, in record_messages
await _predict_till_next_listen(
File "/venv/lib/python3.10/site-packages/rasa/core/training/interactive.py", line 960, in _predict_till_next_listen
result = await request_prediction(endpoint, conversation_id)
File "/venv/lib/python3.10/site-packages/rasa/core/training/interactive.py", line 180, in request_prediction
return await endpoint.request(
File "/venv/lib/python3.10/site-packages/rasa/utils/endpoints.py", line 174, in request
raise ClientResponseError(
rasa.utils.endpoints.ClientResponseError: 500, Internal Server Error, body='b'{"version":"3.6.11","status":"failure","message":"An unexpected error occurred. Error: \'NoneType\' object has no attribute \'send_response\'","reason":"ConversationError","details":{},"help":null,"code":500}''
2023-10-10 16:39:26 ERROR asyncio - Task exception was never retrieved
future: <Task finished name='Task-6' coro=<SignalRouter._dispatch() done, defined at /Users/warrior/Dev/work-projects/1xSlots-assistant-gl/1xslots-venv/lib/python3.10/site-packages/sanic/signals.py:121> exception=ClientResponseError('500, Internal Server Error, body=\'b\'{"version":"3.6.11","status":"failure","message":"An unexpected error occurred. Error: \\\'NoneType\\\' object has no attribute \\\'send_response\\\'","reason":"ConversationError","details":{},"help":null,"code":500}\'\'')>
Traceback (most recent call last):
File "/venv/lib/python3.10/site-packages/sanic/signals.py", line 161, in _dispatch
retval = await maybe_coroutine
File "/venv/lib/python3.10/site-packages/sanic/app.py", line 1581, in run_delayed_task
await prepped
File "/venv/lib/python3.10/site-packages/rasa/core/training/interactive.py", line 1609, in run_interactive_io
await record_messages(
File "/venv/lib/python3.10/site-packages/rasa/core/training/interactive.py", line 1517, in record_messages
await _predict_till_next_listen(
File "/venv/lib/python3.10/site-packages/rasa/core/training/interactive.py", line 960, in _predict_till_next_listen
result = await request_prediction(endpoint, conversation_id)
File "/venv/lib/python3.10/site-packages/rasa/core/training/interactive.py", line 180, in request_prediction
return await endpoint.request(
File "/venv/lib/python3.10/site-packages/rasa/utils/endpoints.py", line 174, in request
raise ClientResponseError(
rasa.utils.endpoints.ClientResponseError: 500, Internal Server Error, body='b'{"version":"3.6.11","status":"failure","message":"An unexpected error occurred. Error: \'NoneType\' object has no attribute \'send_response\'","reason":"ConversationError","details":{},"help":null,"code":500}''
I think the error occurs when my custom action_session_start
is triggered, but there are no errors in actions server.
Is there any ideas or workarounds of how to fix this?
- Rasa Version : 3.6.11
- Minimum Compatible Version: 3.5.0
- Rasa SDK Version : 3.6.2
- Python Version : 3.10.7
- Operating System : macOS-12.2.1-arm64-arm-64bit