Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在公众号历史界面出现如下错误 #4

Open
hejiheji001 opened this issue Apr 6, 2017 · 15 comments
Open

在公众号历史界面出现如下错误 #4

hejiheji001 opened this issue Apr 6, 2017 · 15 comments

Comments

@hejiheji001
Copy link

Unhandled rejection SequelizeBaseError: Validation error
at Query.formatError (C:\Users\Administrator\AppData\Roaming\npm\node_modules\wechat_spider\node_modules\sequelize\l
ib\dialects\sqlite\query.js:337:14)
at Statement.afterExecute (C:\Users\Administrator\AppData\Roaming\npm\node_modules\wechat_spider\node_modules\sequel
ize\lib\dialects\sqlite\query.js:112:29)
at Statement.replacement (C:\Users\Administrator\AppData\Roaming\npm\node_modules\wechat_spider\node_modules\sqlite3
\lib\trace.js:19:31)

@zhulinpinyu
Copy link

sqllite 是否正常安装?

@hejiheji001
Copy link
Author

只在历史界面有这个问题

在其他地方没问题 也可以正确生成sqlite文件

@hejiheji001
Copy link
Author

在你自己的公众号没有这个问题。。。

@lijinma
Copy link
Owner

lijinma commented Apr 6, 2017

说一下如何操作的,哪个公众账号,我来本地试一下。

@hejiheji001
Copy link
Author

公众号比较Low 微信号 nvshen370

  1. 开启 spider
  2. 点开 查看历史消息

@zhangjunwei
Copy link

遇到同样的问题

@songbai001
Copy link

遇到同样的问题,第一次抓取是OK的,后面再抓就报这个错了

@lijinma
Copy link
Owner

lijinma commented Apr 11, 2017

@hejiheji001 @zhulinpinyu @zhangjunwei @songbai001

对不住各位,今天才回复你们。

原因是:

数据中 contentUrl 唯一索引,第二次又插入相同的数据,报错。

我改一下,插入的时候先查一下是否有数据,如果有就不插入数据了

@BlackSpadeAce
Copy link

@lijinma 你好,这个,我刚刚用npm安装的,还会出现这个问题。该怎么处理?

@lijinma
Copy link
Owner

lijinma commented Apr 16, 2017

@BlackSpadeAce 这个问题不影响采集,但是另外一个 issue 还没解决。。

@BlackSpadeAce
Copy link

@lijinma 我采集一个公众号的时候,没有翻页。只采集打开时候看到的那几个。

@lijinma
Copy link
Owner

lijinma commented Apr 17, 2017

@BlackSpadeAce 恩,问题还没解决。。

@mashuangshuang
Copy link

@lijinma 你好,看了你们的问答,这个问题之欠已经修复,but但是现在还会存在这个问题

@vnqiubiao
Copy link

@lijinma @hejiheji001 我也是看了你们回答,在修复了 contentUrl 唯一索引后,还会出现@hejiheji001 的问题

@Nowforpasserby
Copy link

@lijinma 不好意思,我现在刚在用,然后发现了楼主的这个问题,然后连你的那个公众号好像也没办法爬。

qiwihui added a commit to qiwihui/wechat_spider that referenced this issue Jun 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants