【发布时间】:2021-01-13 14:41:31
【问题描述】:
在安装了 macOS 11.1 (Big Sur) 的 Intel MacBook Pro 上运行 Headless Chrome Crawler (hccrawler) 时,我们收到以下错误:
hccrawler:console error Failed to load resource: net::ERR_FAILED at https://example.com/some-page
(node:12722) UnhandledPromiseRejectionWarning: Error: Page crashed!
at Page._onTargetCrashed (./node_modules/puppeteer/lib/Page.js:156:24)
at CDPSession.Page.client.on.event (./node_modules/puppeteer/lib/Page.js:132:56)
at CDPSession.emit (events.js:198:13)
at CDPSession.EventEmitter.emit (domain.js:448:20)
at CDPSession._onMessage (./node_modules/puppeteer/lib/Connection.js:232:12)
at Connection._onMessage (./node_modules/puppeteer/lib/Connection.js:119:19)
注意:为了获得更详细的日志,我使用了DEBUG='hccrawler:*' 环境变量。
版本:
- node.js:10.16
- 无头 Chrome 爬虫:1.8.0
- 傀儡师:1.5.0
对于以前版本的 macOS 和 Ubuntu,它仍然可以正常工作。知道问题可能是什么吗?会不会是最新的 macOS 版本以某种方式阻止了 Puppeteer 生成的 Chromium 进程?
【问题讨论】:
标签: node.js macos puppeteer chromium