Full exception stack
ERROR:flask.app:Exception on /webhook [POST] Traceback (most recent call last): File “/Users/anaconda/envs/python3/lib/python3.6/site-packages/flask/app.py”, line 2292, in wsgi_app response = self.full_dispatch_request() File “/Users//anaconda/envs/python3/lib/python3.6/site-packages/flask/app.py”, line 1815, in full_dispatch_request rv = self.handle_user_exception(e) File “/Users/anaconda/envs/python3/lib/python3.6/site-packages/flask_cors/extension.py”, line 161, in wrapped_function return cors_after_request(app.make_response(f(*args, **kwargs))) File “/Users/anaconda/envs/python3/lib/python3.6/site-packages/flask/app.py”, line 1718, in handle_user_exception reraise(exc_type, exc_value, tb) File “/Users//anaconda/envs/python3/lib/python3.6/site-packages/flask/_compat.py”, line 35, in reraise raise value File “/Users//anaconda/envs/python3/lib/python3.6/site-packages/flask/app.py”, line 1813, in full_dispatch_request rv = self.dispatch_request() File “/Users//anaconda/envs/python3/lib/python3.6/site-packages/flask/app.py”, line 1799, in dispatch_request return self.view_functionsrule.endpoint File “/Users/anaconda/envs/python3/lib/python3.6/site-packages/flask_cors/decorator.py”, line 128, in wrapped_function resp = make_response(f(*args, **kwargs)) File “/Users/anaconda/envs/python3/lib/python3.6/site-packages/rasa_core_sdk/endpoint.py”, line 91, in webhook return jsonify(response) File “/Users/anaconda/envs/python3/lib/python3.6/site-packages/flask/json/init.py”, line 321, in jsonify dumps(data, indent=indent, separators=separators) + ‘\n’, File “/Users/anaconda/envs/python3/lib/python3.6/site-packages/flask/json/init.py”, line 179, in dumps rv = _json.dumps(obj, **kwargs) File “/Users/anaconda/envs/python3/lib/python3.6/site-packages/simplejson/init.py”, line 399, in dumps **kw).encode(obj) File “/Users/anaconda/envs/python3/lib/python3.6/site-packages/simplejson/encoder.py”, line 296, in encode chunks = self.iterencode(o, _one_shot=True) File “/Users/anaconda/envs/python3/lib/python3.6/site-packages/simplejson/encoder.py”, line 378, in iterencode return _iterencode(o, 0) File “/Users/anaconda/envs/python3/lib/python3.6/site-packages/flask/json/init.py”, line 81, in default return _json.JSONEncoder.default(self, o) File “/Users/anaconda/envs/python3/lib/python3.6/site-packages/simplejson/encoder.py”, line 273, in default o.class.name) TypeError: Object of type generator is not JSON serializable 127.0.0.1 - - [2019-01-25 13:05:14] “POST /webhook HTTP/1.1” 500 412 0.005321