Problem when inviting testers

ricwo
(Iamtheuserofthis) #1

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/app.py”, line 917, in handle_request
response = await response
File “/home/iamtheuserofthis/anaconda3/envs/py_chat_v1/lib/python3.6/site-packages/rasax/community/api/decorators.py”, 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/decorators.py”, 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/decorators.py”, 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/stack.py”, line 101, in list_clients user) File “/home/iamtheuserofthis/anaconda3/envs/py_chat_v1/lib/python3.6/site-packages/rasax/community/services/event_service.py”, line 615, in get_clients
user[“username”], UserService(request[“db_session”]))
TypeError: ‘NoneType’ object is not subscriptable

(ricwo) #2

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

1 Like
(Iamtheuserofthis) #3

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