Problem when inviting testers

When the testers finish the conversation and I refresh conversations page then I get the following error:

[ERROR] Exception occurred while handling uri: ‘http://x.x.x.x:5002/api/conversations?limit=20&offset=0&intent=&entity=&action=&policies=&exclude_self=true
Traceback (most recent call last):
File “/home/iamtheuserofthis/anaconda3/envs/py_chat_v1/lib/python3.6/site-packages/sanic/”, line 917, in handle_request
response = await response
File “/home/iamtheuserofthis/anaconda3/envs/py_chat_v1/lib/python3.6/site-packages/rasax/community/api/”, line 184, in decorated_function
return await await_and_return_response(args, kwargs, request)
File “/home/iamtheuserofthis/anaconda3/envs/py_chat_v1/lib/python3.6/site-packages/rasax/community/api/”, line 114, in await_and_return_response
response = await response File “/home/iamtheuserofthis/anaconda3/envs/py_chat_v1/lib/python3.6/site-packages/rasax/community/api/”, line 52, in decorated_function
return await response File “/home/iamtheuserofthis/anaconda3/envs/py_chat_v1/lib/python3.6/site-packages/rasax/community/api/blueprints/”, line 101, in list_clients user) File “/home/iamtheuserofthis/anaconda3/envs/py_chat_v1/lib/python3.6/site-packages/rasax/community/services/”, line 615, in get_clients
user[“username”], UserService(request[“db_session”]))
TypeError: ‘NoneType’ object is not subscriptable

Hi @iamtheuserofthis would you mind sharing steps to reproduce this issue?

1 Like

@ricwo Steps to replicate the error:

  1. Export an environment variable to make sure it uses the machine’s ip
    export RASA_X_HOSTNAME=https://ip.of.the.server; rasa x
  2. When I generate the invite testers link , it works fine from the same machine. But when anyone else on my network uses the link , it shows th above err.

P.S. I am running rasa in a Conda env
Idk if it works in Venv, it must idk

Thanks @iamtheuserofthis. I have not been able to reproduce this issue. Can you try updating to the latest version of rasa-x and see if the error persists? The latest version is 0.19.1, and a new patch release 0.19.2 will be out in the next couple of hours

@ricwo it has stopped throwing error and crashing.
However sometimes the replies on the testers’ end are seen out of order or with an overlapped replies but when we see conversations on the rasa x conversations tab, it shows the whole conversation properly.
Almost everything else works perfectly now.

@iamtheuserofthis great!

However sometimes the replies on the testers’ end are seen out of order or with an overlapped replies

can you post a screenshot of what that looks like? is this something you can reliably reproduce?

@ricwo Sorry for the extremely delayed reply but we decided to move forward without rasa-x earlier, there were/are more pressing issues which needed handling. We used the very helpful tracker store and custom scripts to test and improve our model. Thank you for your willing cooperation.

The error is self-explanatory. You are trying to subscript an object which you think is a list or dict, but actually is None. This means that you tried to do:


This error means that you attempted to index an object that doesn’t have that functionality. You might have noticed that the method sort() that only modify the list have no return value printed – they return the default None. ‘NoneType’ object is not subscriptable is the one thrown by python when you use the square bracket notation object[key] where an object doesn’t define the getitem method . This is a design principle for all mutable data structures in Python.