0%

可恶的百度推送bug

事情是这样的,这天博主吃着盐水鸭改着代码,突然发现

1
hexo s

报错了,以下是报错信息

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
TypeError: Cannot read properties of undefined (reading 'count')
at module.exports (H:\Blog\node_modules\hexo-baidu-url-submit\lib\generator.js:4:41)
at Hexo.tryCatcher (H:\Blog\node_modules\bluebird\js\release\util.js:16:23)
at Hexo.<anonymous> (H:\Blog\node_modules\bluebird\js\release\method.js:15:34)
at H:\Blog\node_modules\hexo\lib\hexo\index.js:407:22
at tryCatcher (H:\Blog\node_modules\bluebird\js\release\util.js:16:23)
at MappingPromiseArray._promiseFulfilled (H:\Blog\node_modules\bluebird\js\release\map.js:68:38)
at PromiseArray._iterate (H:\Blog\node_modules\bluebird\js\release\promise_array.js:115:31)
at MappingPromiseArray.init (H:\Blog\node_modules\bluebird\js\release\promise_array.js:79:10)
at MappingPromiseArray._asyncInit (H:\Blog\node_modules\bluebird\js\release\map.js:37:10)
at _drainQueueStep (H:\Blog\node_modules\bluebird\js\release\async.js:97:12)
at _drainQueue (H:\Blog\node_modules\bluebird\js\release\async.js:86:9)
at Async._drainQueues (H:\Blog\node_modules\bluebird\js\release\async.js:102:5)
at Async.drainQueues [as _onImmediate] (H:\Blog\node_modules\bluebird\js\release\async.js:15:14)
at process.processImmediate (node:internal/timers:476:21)

一眼就看到里面显眼的

1
(H:\Blog\node_modules\hexo-baidu-url-submit\lib\generator.js:4:41)

于是上网去搜,果然发现了和博主一样的倒霉蛋
链接在这里https://github.com/hexojs/hexo/issues/2402
看来确实是百度推送的插件有问题
于是博主一通操作

1
npm remove hexo-baidu-url-submit

问题解决。

1
hexo g --debug

你定位问题的好帮手


首发于2023-08-06

地址 :https://rdququ.top/

欢迎关注我的其它发布渠道