Interactive Error

I’m getting an error in Rasa interactive that I can only sometimes recreate.

2022-01-30 15:07:46 ERROR    rasa.server  - An unexpected error occurred. Error: 'NoneType' object has no attribute 'get'
2022-01-30 15:07:46 ERROR    rasa.core.training.interactive  - An exception occurred while recording messages.

It occurs when trying to fill a slot on a particular form, but also sometimes happens when calling a custom action. The weird thing is that the action server isn’t triggered, so I know it’s not a problem with actions.py.

Not sure what to do. Happy to provide any other info. Thanks. The full error is pasted below

2022-01-30 15:07:46 ERROR    rasa.server  - An unexpected error occurred. Error: 'NoneType' object has no attribute 'get'
2022-01-30 15:07:46 ERROR    rasa.core.training.interactive  - An exception occurred while recording messages.
Traceback (most recent call last):
  File "/Users/gregoryferenstein/Dropbox/visualstudiostest/selfbot/venv/lib/python3.8/site-packages/rasa/core/training/interactive.py", line 1498, in record_messages
    await _enter_user_message(conversation_id, endpoint)
  File "/Users/gregoryferenstein/Dropbox/visualstudiostest/selfbot/venv/lib/python3.8/site-packages/rasa/core/training/interactive.py", line 1341, in _enter_user_message
    await send_message(endpoint, conversation_id, message)
  File "/Users/gregoryferenstein/Dropbox/visualstudiostest/selfbot/venv/lib/python3.8/site-packages/rasa/core/training/interactive.py", line 161, in send_message
    return await endpoint.request(
  File "/Users/gregoryferenstein/Dropbox/visualstudiostest/selfbot/venv/lib/python3.8/site-packages/rasa/utils/endpoints.py", line 173, in request
    raise ClientResponseError(
rasa.utils.endpoints.ClientResponseError: 500, Internal Server Error, body='b'{"version":"3.0.4","status":"failure","message":"An unexpected error occurred. Error: \'NoneType\' object has no attribute \'get\'","reason":"ConversationError","details":{},"help":null,"code":500}''
2022-01-30 15:07:46 ERROR    asyncio  - Task exception was never retrieved
future: <Task finished name='Task-6' coro=<SignalRouter._dispatch() done, defined at /Users/gregoryferenstein/Dropbox/visualstudiostest/selfbot/venv/lib/python3.8/site-packages/sanic/signals.py:102> exception=ClientResponseError('500, Internal Server Error, body=\'b\'{"version":"3.0.4","status":"failure","message":"An unexpected error occurred. Error: \\\'NoneType\\\' object has no attribute \\\'get\\\'","reason":"ConversationError","details":{},"help":null,"code":500}\'\'')>
Traceback (most recent call last):
  File "/Users/gregoryferenstein/Dropbox/visualstudiostest/selfbot/venv/lib/python3.8/site-packages/sanic/signals.py", line 133, in _dispatch
    retval = await maybe_coroutine
  File "/Users/gregoryferenstein/Dropbox/visualstudiostest/selfbot/venv/lib/python3.8/site-packages/sanic/app.py", line 1374, in run_delayed_task
    await prepped
  File "/Users/gregoryferenstein/Dropbox/visualstudiostest/selfbot/venv/lib/python3.8/site-packages/rasa/core/training/interactive.py", line 1594, in run_interactive_io
    await record_messages(
  File "/Users/gregoryferenstein/Dropbox/visualstudiostest/selfbot/venv/lib/python3.8/site-packages/rasa/core/training/interactive.py", line 1498, in record_messages
    await _enter_user_message(conversation_id, endpoint)
  File "/Users/gregoryferenstein/Dropbox/visualstudiostest/selfbot/venv/lib/python3.8/site-packages/rasa/core/training/interactive.py", line 1341, in _enter_user_message
    await send_message(endpoint, conversation_id, message)
  File "/Users/gregoryferenstein/Dropbox/visualstudiostest/selfbot/venv/lib/python3.8/site-packages/rasa/core/training/interactive.py", line 161, in send_message
    return await endpoint.request(
  File "/Users/gregoryferenstein/Dropbox/visualstudiostest/selfbot/venv/lib/python3.8/site-packages/rasa/utils/endpoints.py", line 173, in request
    raise ClientResponseError(
rasa.utils.endpoints.ClientResponseError: 500, Internal Server Error, body='b'{"version":"3.0.4","status":"failure","message":"An unexpected error occurred. Error: \'NoneType\' object has no attribute \'get\'","reason":"ConversationError","details":{},"help":null,"code":500}''

@travelmail26 It is related to an HTTP server and he is not getting the response back as 200, issue can be anything.

This is all happening on my local machine. what do you suggest i try? thanks!

@travelmail26 it is interesting, can you share the rasa --version, please.

3.0. the problem started after i upgraded

@travelmail26 I guess, RASA 3. x having some issues. Give me some time, let me see what the issue can be.

@travelmail26 can you share rasa --version and your OS?

Thanks.

mac os, rasa 3.0.4

thanks!

Should I submit a bug report?

@travelmail26 are you using Dropbox, just checking, or its local machine?

its my local machine and automatically backs up to dropbox. its just the directory. I’m using it on a mac

@travelmail26 Yes, you need to open the Github issue for that in that case.

I opened up a gitbub bug report here but haven’t gotten anything back

@travelmail26 I guess they are working on this? Is this so important for you?