为了账号安全,请及时绑定邮箱和手机立即绑定

用Promise重写爬虫报错Unhandled rejection TypeError: Cannot read property 'parent' of undefined

 at Function.exports.update (d:\node\pachong\node_modules\cheerio\lib\parse.js:69:26)

 at module.exports (d:\node\pachong\node_modules\cheerio\lib\parse.js:19:11)

 at Function.exports.load (d:\node\pachong\node_modules\cheerio\lib\static.js:27:14)

 at filterchapter (d:\node\pachong\promise_crawler.js:9:16)

 at d:\node\pachong\promise_crawler.js:100:15

 at Array.forEach (<anonymous>)

 at d:\node\pachong\promise_crawler.js:99:8

 at tryCatcher (d:\node\pachong\node_modules\bluebird\js\release\util.js:16:23)

 at Promise._settlePromiseFromHandler (d:\node\pachong\node_modules\bluebird\js\release\promise.js:512:31)

 at Promise._settlePromise (d:\node\pachong\node_modules\bluebird\js\release\promise.js:569:18)

 at Promise._settlePromise0 (d:\node\pachong\node_modules\bluebird\js\release\promise.js:614:10)

 at Promise._settlePromises (d:\node\pachong\node_modules\bluebird\js\release\promise.js:693:18)

 at Promise._fulfill (d:\node\pachong\node_modules\bluebird\js\release\promise.js:638:18)

 at PromiseArray._resolve (d:\node\pachong\node_modules\bluebird\js\release\promise_array.js:126:19)

 at PromiseArray._promiseFulfilled (d:\node\pachong\node_modules\bluebird\js\release\promise_array.js:144:14)

 at Promise._settlePromise (d:\node\pachong\node_modules\bluebird\js\release\promise.js:574:26)


正在回答

举报

0/150
提交
取消
进击Node.js基础(二)
  • 参与学习       76755    人
  • 解答问题       226    个

本教程带你攻破 Nodejs,让 JavaScript流畅运行在服务器端

进入课程

用Promise重写爬虫报错Unhandled rejection TypeError: Cannot read property 'parent' of undefined

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信