Rasa shell argument of type 'NoneType' is not iterable

Hi,

I have just started with rasa. First step after installing rasa via pip was that I created new virtual environment and typed in terminal “rasa init”. After sample model was created he trained it self and after that ran into rasa shell. And what happened was he asked for my input, so I typed “Hi” :slight_smile: but I got error and after error I got answer from bot: “Hey! How are you?”

Error was: Exception occurred in one of response middleware handlers Traceback (most recent call last): File “c:\users\urer\anaconda3\lib\site-packages\sanic\app.py”, line 958, in handle_request request, response File “c:\users\urer\anaconda3\lib\site-packages\spf\framework.py”, line 579, in _run_response_middleware _response = await _response File “c:\users\urer\anaconda3\lib\site-packages\sanic_cors\extension.py”, line 267, in unapplied_cors_response_middleware set_cors_headers(req, resp, context, res_options) File “c:\users\urer\anaconda3\lib\site-packages\sanic_cors\core.py”, line 254, in set_cors_headers headers_to_set = get_cors_headers(options, req.headers, req.method) File “c:\users\urer\anaconda3\lib\site-packages\sanic_cors\core.py”, line 174, in get_cors_headers origins_to_set = get_cors_origins(options, request_headers.get(‘Origin’)) File “c:\users\urer\anaconda3\lib\site-packages\sanic_cors\core.py”, line 149, in get_cors_origins return sorted([o for o in origins if not probably_regex(o)]) File “c:\users\urer\anaconda3\lib\site-packages\sanic_cors\core.py”, line 149, in return sorted([o for o in origins if not probably_regex(o)]) File “c:\users\urer\anaconda3\lib\site-packages\sanic_cors\core.py”, line 273, in probably_regex return any((c in maybe_regex for c in common_regex_chars)) File “c:\users\urer\anaconda3\lib\site-packages\sanic_cors\core.py”, line 273, in return any((c in maybe_regex for c in common_regex_chars)) TypeError: argument of type ‘NoneType’ is not iterable

How I should handle this error?

1 Like

I’m also getting the same error.

I am also getting that error

Getting the same problem please help me out !!!

Soo, nobody can help?

Looks like a bug in the latest version. Tracking it here -

Hey I am getting the same problem

c:\users\dell\desktop\weatherchatbot\env\lib\site-packages\rasa\shared\utils\common.py", line 17, in class_from_module_path

if "." in module_path:

TypeError: argument of type ‘NoneType’ is not iterable

Rasa Version : 2.0.0

Rasa SDK Version : 2.0.0

Rasa X Version : None

Python Version : 3.6.8

Operating System : Windows-10-10.0.18362-SP0