Traceback (most recent call last):


 "/home/pi/.local/lib/python3.5/site-packages/flask/app.py", line 1997, in __call__

return self.wsgi_app(environ, start_response)


 "/home/pi/.local/lib/python3.5/site-packages/flask/app.py", line 1985, in wsgi_app

response = self.handle_exception(e)


 "/home/pi/.local/lib/python3.5/site-packages/flask_cors/extension.py", line 161, in wrapped_function

return cors_after_request(app.make_response(f(*args, **kwargs)))


 "/home/pi/.local/lib/python3.5/site-packages/flask/app.py", line 1540, in handle_exception

reraise(exc_type, exc_value, tb)


 "/home/pi/.local/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise

raise value


 "/home/pi/.local/lib/python3.5/site-packages/flask/app.py", line 1982, in wsgi_app

response = self.full_dispatch_request()


 "/home/pi/.local/lib/python3.5/site-packages/flask/app.py", line 1614, in full_dispatch_request

rv = self.handle_user_exception(e)


 "/home/pi/.local/lib/python3.5/site-packages/flask_cors/extension.py", line 161, in wrapped_function

return cors_after_request(app.make_response(f(*args, **kwargs)))


 "/home/pi/.local/lib/python3.5/site-packages/flask/app.py", line 1517, in handle_user_exception

reraise(exc_type, exc_value, tb)


 "/home/pi/.local/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise

raise value


 "/home/pi/.local/lib/python3.5/site-packages/flask/app.py", line 1612, in full_dispatch_request

rv = self.dispatch_request()


 "/home/pi/.local/lib/python3.5/site-packages/flask/app.py", line 1598, in dispatch_request

return self.view_functions[rule.endpoint](**req.view_args)


 "/home/pi/Desktop/AIBot/ai-chatbot-framework/app/stories/controllers.py", line 83, in updateStory

jsondata = loads(request.get_data())


 "/home/pi/.local/lib/python3.5/site-packages/bson/json_util.py", line 438, in loads

return json.loads(s, *args, **kwargs)


 "/usr/lib/python3.5/json/__init__.py", line 312, in loads

s.__class__.__name__))
TypeError: the JSON object must be str, not 'bytes'


Traceback (most recent call last):


 "/opt/ts/services/miniconda.ext_public_miniconda/dist/lib/python3.5/site-packages/conda/exceptions.py", line 591, in conda_exception_handler

return_value = func(*args, **kwargs)


 "/opt/ts/services/miniconda.ext_public_miniconda/dist/lib/python3.5/site-packages/conda_env/cli/main_create.py", line 108, in execute

installer.install(prefix, pkg_specs, args, env)


 "/opt/ts/services/miniconda.ext_public_miniconda/dist/lib/python3.5/site-packages/conda_env/installers/pip.py", line 8, in install

pip_cmd = pip_args(prefix) + ['install', ] + specs

TypeError: unsupported operand type(s) for +: 'NoneType' and 'list'
