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

新加订阅出错 #135

Closed
xinxijishuwyq opened this issue Mar 7, 2020 · 8 comments
Closed

新加订阅出错 #135

xinxijishuwyq opened this issue Mar 7, 2020 · 8 comments

Comments

@xinxijishuwyq
Copy link

如图,新添加订阅一直显示正在处理中请稍后。发送其他指令无响应。重启机器人依旧会出现“正在处理中请稍后”
image

@xinxijishuwyq
Copy link
Author

这个问题似乎是在nodejs13的某个版本后才出现的,我换成nodejs12后解决了

@fengkx
Copy link
Owner

fengkx commented Mar 7, 2020

issue先不急着关。能提供具体的node版本号和log吗?你是怎么启动bot的。

@fengkx fengkx reopened this Mar 7, 2020
@xinxijishuwyq
Copy link
Author

issue先不急着关。能提供具体的node版本号和log吗?你是怎么启动bot的。

node是13.10.1,启动方式是按照你写的,第一次“pm2 start npm --name node_rssbot -- start”,往后pm2 start node_rssbot

日志的话刚才我删了,我在本地复现一下

@xinxijishuwyq
Copy link
Author

不好意思,“一直显示正在处理中请稍后”这个问题没有成功复现。
但是rss抓取似乎没有正常工作
我刚才尝试订阅了“https://lorem-rss.herokuapp.com/feed?unit=second”,每秒钟都更新的rss
而程序我设置的更新频率是1分钟,几分钟过去了都没接到消息
image
image

@xinxijishuwyq
Copy link
Author

不好意思,“一直显示正在处理中请稍后”这个问题没有成功复现。
但是rss抓取似乎没有正常工作
我刚才尝试订阅了“https://lorem-rss.herokuapp.com/feed?unit=second”,每秒钟都更新的rss
而程序我设置的更新频率是1分钟,几分钟过去了都没接到消息
image
image

{"message":"Database file is in /home/ken/NodeRSSBot/data/database.db","level":"info","timestamp":"2020-03-07T12:40:16.826Z"}
{"message":"Using Default language is zh-cn","level":"info","timestamp":"2020-03-07T12:40:16.831Z"}
{"message":"send the latest 10 items for each feed","level":"info","timestamp":"2020-03-07T12:40:16.832Z"}
{"message":"NodeRSSBot is ready","level":"info","timestamp":"2020-03-07T12:40:16.833Z"}
{"message":"init tables in /home/ken/NodeRSSBot/data/database.db","level":"info","timestamp":"2020-03-07T12:40:16.836Z"}
{"message":"start fetching","level":"info","timestamp":"2020-03-07T12:40:17.350Z"}
{"message":"fetch every 1 minutes","level":"info","timestamp":"2020-03-07T12:40:17.351Z"}
{"message":"start fetching","level":"info","timestamp":"2020-03-07T12:41:00.039Z"}
{"message":"start fetching","level":"info","timestamp":"2020-03-07T12:42:00.062Z"}
{"message":"start fetching","level":"info","timestamp":"2020-03-07T12:43:00.064Z"}
{"message":"start fetching","level":"info","timestamp":"2020-03-07T12:44:00.062Z"}

@fengkx
Copy link
Owner

fengkx commented Mar 8, 2020

我成功在node v13.10.1复现了这个问题。发现是因为程序卡在了HTTP请求got中。
参考 sindresorhus/got#1107

暂时先回退到13.10 以下的版本吧

@xinxijishuwyq
Copy link
Author

nodejs 13.11.0下已经正常。
谢谢。

@fengkx
Copy link
Owner

fengkx commented Mar 13, 2020

添加相关测试。以避免类似情况出现
1cb7ea6

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

2 participants