0

我已经在您的网站上运行了您提供的示例 Python 脚本。我收到一个 sql 错误:

 **E(0108-124524-289)(9417): sql error in insert: insert into messages (mid, gid, channel, type, ts, status, expiry, flag, sender, message, thumbnail, filepath, rts, uflags) VALUES ("961428429235933", 0, 0, 0, 1596216731289, 18, 0, 0, ?, ?, ?, ?, 0, 0) (constraint failed)**
**Segmentation fault (core dumped)**

有人可以帮我吗?

4

2 回答 2

1

清除数据库并查看问题是否仍然存在。确保您使用的是最新版本的mesibo python 包。尝试运行此脚本

于 2020-08-16T05:39:38.157 回答
0

很可能您过早地退出脚本并因此导致崩溃。请注意, mesibo.start() 是一个异步调用,它会立即返回。如果您在 mesibo.start() 之后没有执行任何操作,请使用某种等待调用或使用 mesibo.wait()

于 2020-08-16T06:25:14.757 回答