TypeError: Object of type FollowupAction is not JSON serializable

rasa-core

(Rakshit Singbal) #1

Please can you help me here.

Traceback (most recent call last): File “/Users/rakshit/anaconda3/envs/dev/lib/python3.6/site-packages/flask/app.py”, line 2292, in wsgi_app response = self.full_dispatch_request() File “/Users/rakshit/anaconda3/envs/dev/lib/python3.6/site-packages/flask/app.py”, line 1815, in full_dispatch_request rv = self.handle_user_exception(e) File “/Users/rakshit/anaconda3/envs/dev/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/rakshit/anaconda3/envs/dev/lib/python3.6/site-packages/flask/app.py”, line 1718, in handle_user_exception reraise(exc_type, exc_value, tb) File “/Users/rakshit/anaconda3/envs/dev/lib/python3.6/site-packages/flask/_compat.py”, line 35, in reraise raise value File “/Users/rakshit/anaconda3/envs/dev/lib/python3.6/site-packages/flask/app.py”, line 1813, in full_dispatch_request rv = self.dispatch_request() File “/Users/rakshit/anaconda3/envs/dev/lib/python3.6/site-packages/flask/app.py”, line 1799, in dispatch_request return self.view_functionsrule.endpoint File “/Users/rakshit/anaconda3/envs/dev/lib/python3.6/site-packages/flask_cors/decorator.py”, line 128, in wrapped_function resp = make_response(f(*args, **kwargs)) File “/Users/rakshit/anaconda3/envs/dev/lib/python3.6/site-packages/rasa_core_sdk/endpoint.py”, line 74, in webhook return jsonify(response) File “/Users/rakshit/anaconda3/envs/dev/lib/python3.6/site-packages/flask/json/init.py”, line 321, in jsonify dumps(data, indent=indent, separators=separators) + ‘\n’, File “/Users/rakshit/anaconda3/envs/dev/lib/python3.6/site-packages/flask/json/init.py”, line 179, in dumps rv = _json.dumps(obj, **kwargs) File “/Users/rakshit/anaconda3/envs/dev/lib/python3.6/site-packages/simplejson/init.py”, line 399, in dumps **kw).encode(obj) File “/Users/rakshit/anaconda3/envs/dev/lib/python3.6/site-packages/simplejson/encoder.py”, line 296, in encode chunks = self.iterencode(o, _one_shot=True) File “/Users/rakshit/anaconda3/envs/dev/lib/python3.6/site-packages/simplejson/encoder.py”, line 378, in iterencode return _iterencode(o, 0) File “/Users/rakshit/anaconda3/envs/dev/lib/python3.6/site-packages/flask/json/init.py”, line 81, in default return _json.JSONEncoder.default(self, o) File “/Users/rakshit/anaconda3/envs/dev/lib/python3.6/site-packages/simplejson/encoder.py”, line 273, in default o.class.name) TypeError: Object of type FollowupAction is not JSON serializable