# Error after every entry in rasa shell

**URL:** <https://forum.rasa.com/t/error-after-every-entry-in-rasa-shell/18404>\
**Category:** Getting Started with Rasa\
**Created:** [October 4, 2019, 1:16pm UTC](https://forum.rasa.com/t/error-after-every-entry-in-rasa-shell/18404 "2019-10-04T13:16:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ggabor](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ggabor/32/5292_2.png) [@ggabor](https://forum.rasa.com/u/ggabor)\
**Post date:** [October 4, 2019, 1:16pm UTC](https://forum.rasa.com/t/error-after-every-entry-in-rasa-shell/18404/1 "2019-10-04T13:16:18Z")

</div>

When I run my bot via `rasa shell` and I type in anything, even if it’s a perfectly identified intent, I receive this error before the bot responds (the bot goes on to respond correctly, but the error is there every time):

```
Exception occurred in one of response middleware handlers
Traceback (most recent call last):
  File "c:\programdata\anaconda3\lib\site-packages\sanic\app.py", line 958, in handle_request
    request, response
  File "c:\programdata\anaconda3\lib\site-packages\spf\framework.py", line 579, in _run_response_middleware
    _response = await _response
  File "c:\programdata\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:\programdata\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:\programdata\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:\programdata\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:\programdata\anaconda3\lib\site-packages\sanic_cors\core.py", line 149, in <listcomp>
    return sorted([o for o in origins if not probably_regex(o)])
  File "c:\programdata\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:\programdata\anaconda3\lib\site-packages\sanic_cors\core.py", line 273, in <genexpr>
    return any((c in maybe_regex for c in common_regex_chars))
TypeError: argument of type 'NoneType' is not iterable

```

What causes this and how can I solve it? Thanks.

---

<div class="post-metadata">

**Author:** ![JulianGerhard](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juliangerhard/32/3781_2.png) [@JulianGerhard](https://forum.rasa.com/u/JulianGerhard)\
**Post date:** [October 4, 2019, 1:22pm UTC](https://forum.rasa.com/t/error-after-every-entry-in-rasa-shell/18404/2 "2019-10-04T13:22:49Z")

</div>

Hi @ggabor,

this error seems to be known and discussed [here](https://github.com/RasaHQ/rasa/issues/4545).

Regards Julian

---

<div class="post-metadata">

**Author:** ![ggabor](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ggabor/32/5292_2.png) [@ggabor](https://forum.rasa.com/u/ggabor)\
**Post date:** [October 4, 2019, 1:41pm UTC](https://forum.rasa.com/t/error-after-every-entry-in-rasa-shell/18404/3 "2019-10-04T13:41:27Z")

</div>

Thank you! Indeed the solution provided there (adding `--cors '*'` as argument) solved it.
