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” 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