Ninzore / Wecab

最好的订阅制QQbot
GNU General Public License v3.0
204 stars 18 forks source link

[BUG]推特推送问题 #66

Open SakuraAzusa opened 2 years ago

SakuraAzusa commented 2 years ago

描述 长时间运行时推特会无法推送,微博正常,重启程序可恢复 另”看看单条Twitter“指令无效 补充一个建议,做一个可以列出当前订阅的指令,有时订阅太多无法确认有哪些内容

系统信息

复现 长时间运行

Error Log 2022-01-16T00:43:36: bilibili update error MongoServerSelectionError: connection

to 127.0.0.1:27017 timed out at Timeout._onTimeout (/root/Wecab/node_modules/mongodb/lib/core/sdam/topology.js:438:30) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7) { reason: TopologyDescription { type: 'Single', setName: null, maxSetVersion: null, maxElectionId: null, servers: Map(1) { '127.0.0.1:27017' => [ServerDescription] }, stale: false, compatible: true, compatibilityError: null, logicalSessionTimeoutMinutes: null, heartbeatFrequencyMS: 10000, localThresholdMS: 15, commonWireVersion: null } } 2022-01-16T00:50:07: MongoServerSelectionError: Server selection timed out after 30000 ms at Timeout._onTimeout (/root/Wecab/node_modules/mongodb/lib/core/sdam/topology.js:438:30) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7) { reason: TopologyDescription { type: 'Single', setName: null, maxSetVersion: null, maxElectionId: null, servers: Map(1) { '127.0.0.1:27017' => [ServerDescription] }, stale: false, compatible: true, compatibilityError: null, logicalSessionTimeoutMinutes: null, heartbeatFrequencyMS: 10000, localThresholdMS: 15, commonWireVersion: null } } 2022-01-16T02:03:41: bilibili update error MongoServerSelectionError: connection to 127.0.0.1:27017 timed out at Timeout._onTimeout (/root/Wecab/node_modules/mongodb/lib/core/sdam/topology.js:438:30) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7) { reason: TopologyDescription { type: 'Single', setName: null, maxSetVersion: null, maxElectionId: null, servers: Map(1) { '127.0.0.1:27017' => [ServerDescription] }, stale: false, compatible: true, compatibilityError: null, logicalSessionTimeoutMinutes: null, heartbeatFrequencyMS: 10000, localThresholdMS: 15, commonWireVersion: null } } 2022-01-16T02:40:22: MongoServerSelectionError: connection to 127.0.0.1:27017 timed out at Timeout._onTimeout (/root/Wecab/node_modules/mongodb/lib/core/sdam/topology.js:438:30) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7) { reason: TopologyDescription { type: 'Single', setName: null, maxSetVersion: null, maxElectionId: null, servers: Map(1) { '127.0.0.1:27017' => [ServerDescription] }, stale: false, compatible: true, compatibilityError: null, logicalSessionTimeoutMinutes: null, heartbeatFrequencyMS: 10000, localThresholdMS: 15, commonWireVersion: null } } 2022-01-16T02:42:10: bilibili update error MongoServerSelectionError: connection to 127.0.0.1:27017 timed out at Timeout._onTimeout (/root/Wecab/node_modules/mongodb/lib/core/sdam/topology.js:438:30) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7) { reason: TopologyDescription { type: 'Single', setName: null, maxSetVersion: null, maxElectionId: null, servers: Map(1) { '127.0.0.1:27017' => [ServerDescription] }, stale: false, compatible: true, compatibilityError: null, logicalSessionTimeoutMinutes: null, heartbeatFrequencyMS: 10000, localThresholdMS: 15, commonWireVersion: null } } 2022-01-16T02:43:52: MongoServerSelectionError: connection to 127.0.0.1:27017 timed out at Timeout._onTimeout (/root/Wecab/node_modules/mongodb/lib/core/sdam/topology.js:438:30) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7) { reason: TopologyDescription { type: 'Single', setName: null, maxSetVersion: null, maxElectionId: null, servers: Map(1) { '127.0.0.1:27017' => [ServerDescription] }, stale: false, compatible: true, compatibilityError: null, logicalSessionTimeoutMinutes: null, heartbeatFrequencyMS: 10000, localThresholdMS: 15, commonWireVersion: null } } You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection: MongoServerSelectionError: connection to 127.0.0.1:27017 timed out at Timeout._onTimeout (/root/Wecab/node_modules/mongodb/lib/core/sdam/topology.js:438:30) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7) 2022-01-16T02:56:36: MongoServerSelectionError: Server selection timed out after 30000 ms at Timeout._onTimeout (/root/Wecab/node_modules/mongodb/lib/core/sdam/topology.js:438:30) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7) { reason: TopologyDescription { type: 'Single', setName: null, maxSetVersion: null, maxElectionId: null, servers: Map(1) { '127.0.0.1:27017' => [ServerDescription] }, stale: false, compatible: true, compatibilityError: null, logicalSessionTimeoutMinutes: null, heartbeatFrequencyMS: 10000, localThresholdMS: 15, commonWireVersion: null } } 2022-01-16T02:56:39: bilibili update error MongoServerSelectionError: Server selection timed out after 30000 ms at Timeout._onTimeout (/root/Wecab/node_modules/mongodb/lib/core/sdam/topology.js:438:30) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7) { reason: TopologyDescription { type: 'Single', setName: null, maxSetVersion: null, maxElectionId: null, servers: Map(1) { '127.0.0.1:27017' => [ServerDescription] }, stale: false, compatible: true, compatibilityError: null, logicalSessionTimeoutMinutes: null, heartbeatFrequencyMS: 10000, localThresholdMS: 15, commonWireVersion: null } } 2022-01-16T02:57:24: MongoServerSelectionError: Server selection timed out after 30000 ms at Timeout._onTimeout (/root/Wecab/node_modules/mongodb/lib/core/sdam/topology.js:438:30) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7) { reason: TopologyDescription { type: 'Single', setName: null, maxSetVersion: null, maxElectionId: null, servers: Map(1) { '127.0.0.1:27017' => [ServerDescription] }, stale: false, compatible: true, compatibilityError: null, logicalSessionTimeoutMinutes: null, heartbeatFrequencyMS: 10000, localThresholdMS: 15, commonWireVersion: null } } 2022-01-16T02:57:24: bilibili update error MongoServerSelectionError: Server selection timed out after 30000 ms at Timeout._onTimeout (/root/Wecab/node_modules/mongodb/lib/core/sdam/topology.js:438:30) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7) { reason: TopologyDescription { type: 'Single', setName: null, maxSetVersion: null, maxElectionId: null, servers: Map(1) { '127.0.0.1:27017' => [ServerDescription] }, stale: false, compatible: true, compatibilityError: null, logicalSessionTimeoutMinutes: null, heartbeatFrequencyMS: 10000, localThresholdMS: 15, commonWireVersion: null } } 2022-01-16T02:57:34: Twitter getUserTimeline error with 403 Forbidden
ciriue commented 2 years ago

你这个是mongodb掉了吧,而且查看推特订阅的指令是有的 else if (/^查看(推特|Twitter)订阅$/i.test(context.message)) {

SakuraAzusa commented 2 years ago

你这个是mongodb掉了吧,而且查看推特订阅的指令是有的 else if (/^查看(推特|Twitter)订阅$/i.test(context.message)) {

我又看了看mongodb的log也没发现报错,当天运行也是正常的,然后有一点是我这边pm2还和cq-picsearcher一起跑的,不知道有没有影响,mongodb和系统我也没重启,把wecab重启下就可以正常推送

HikasaHana commented 2 years ago

请问现在推特功能还能正常使用吗