用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)