Traceback (most recent call last):

 "/usr/local/lib/python2.7/dist-packages/tornado/websocket.py", line 285, in wrapper
return callback(_args, *_kwargs)

 "/usr/local/lib/python2.7/dist-packages/tornadio2/persistent.py", line 87, in open
raise HTTPError(401, "Invalid Session")HTTPError: HTTP 401: Unauthorized (Invalid Session)
Traceback (most recent call last):


 "/Users/yang.fei/python/flask_project/.env/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app

response = self.full_dispatch_request()


 "/Users/yang.fei/python/flask_project/.env/lib/python3.7/site-packages/flask/app.py", line 1952, in full_dispatch_request

rv = self.handle_user_exception(e)


 "/Users/yang.fei/python/flask_project/.env/lib/python3.7/site-packages/flask/app.py", line 1821, in handle_user_exception

reraise(exc_type, exc_value, tb)


 "/Users/yang.fei/python/flask_project/.env/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise

raise value


 "/Users/yang.fei/python/flask_project/.env/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request

rv = self.dispatch_request()


 "/Users/yang.fei/python/flask_project/.env/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request

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


 "/Users/yang.fei/python/flask_project/feiyang/app/views.py", line 53, in approval_s3

db.session.commit()


 "/Users/yang.fei/python/flask_project/.env/lib/python3.7/site-packages/sqlalchemy/orm/scoping.py", line 162, in do

return getattr(self.registry(), name)(*args, **kwargs)


 "/Users/yang.fei/python/flask_project/.env/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 1036, in commit

self.transaction.commit()


 "/Users/yang.fei/python/flask_project/.env/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 503, in commit

self._prepare_impl()


 "/Users/yang.fei/python/flask_project/.env/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 482, in _prepare_impl

self.session.flush()


 "/Users/yang.fei/python/flask_project/.env/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 2496, in flush

self._flush(objects)


 "/Users/yang.fei/python/flask_project/.env/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 2637, in _flush

transaction.rollback(_capture_exception=True)


 "/Users/yang.fei/python/flask_project/.env/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 69, in __exit__

exc_value, with_traceback=exc_tb,


 "/Users/yang.fei/python/flask_project/.env/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 178, in raise_

raise exception


 "/Users/yang.fei/python/flask_project/.env/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 2597, in _flush

flush_context.execute()


 "/Users/yang.fei/python/flask_project/.env/lib/python3.7/site-packages/sqlalchemy/orm/unitofwork.py", line 422, in execute

rec.execute(self)


 "/Users/yang.fei/python/flask_project/.env/lib/python3.7/site-packages/sqlalchemy/orm/unitofwork.py", line 589, in execute

uow,


 "/Users/yang.fei/python/flask_project/.env/lib/python3.7/site-packages/sqlalchemy/orm/persistence.py", line 236, in save_obj

update,


 "/Users/yang.fei/python/flask_project/.env/lib/python3.7/site-packages/sqlalchemy/orm/persistence.py", line 995, in _emit_update_statements

statement, multiparams


 "/Users/yang.fei/python/flask_project/.env/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 984, in execute

return meth(self, multiparams, params)


 "/Users/yang.fei/python/flask_project/.env/lib/python3.7/site-packages/sqlalchemy/sql/elements.py", line 293, in _execute_on_connection

return connection._execute_clauseelement(self, multiparams, params)


 "/Users/yang.fei/python/flask_project/.env/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1103, in _execute_clauseelement

distilled_params,


 "/Users/yang.fei/python/flask_project/.env/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1288, in _execute_context

e, statement, parameters, cursor, context


 "/Users/yang.fei/python/flask_project/.env/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1482, in _handle_dbapi_exception

sqlalchemy_exception, with_traceback=exc_info[2], from_=e


 "/Users/yang.fei/python/flask_project/.env/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 178, in raise_

raise exception


 "/Users/yang.fei/python/flask_project/.env/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1248, in _execute_context

cursor, statement, parameters, context


 "/Users/yang.fei/python/flask_project/.env/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 590, in do_execute

cursor.execute(statement, parameters)
sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) NOT NULL constraint failed: book1.changed_by_fk
