flask开发没有解决的bug记录

sqlalchemy.exc.InvalidRequestError

sqlalchemy.exc.InvalidRequestError: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (sqlite3.IntegrityError) NOT NULL constraint failed: follows.follower_id [SQL: 'INSERT INTO follows (followed_id, timestamp) VALUES (?, ?)'] [parameters: (100, '2017-09-08 07:31:07.391094')]

 

执行关注操作的时候报错

posted @ 2017-09-08 16:48  左手十字  阅读(660)  评论(0)    收藏  举报