platonai / exotic-amazon

A complete solution to crawl amazon at scale completely and accurately.
143 stars 46 forks source link

chrome devtools driver find 'typeError' #13

Open sskmtm opened 1 year ago

sskmtm commented 1 year ago

以下是错误日志:

/usr/bin/google-chrome-stable --proxy-server=1.84.252.243:4231 --headless --disable-gpu --hide-scrollbars --remote-debugging-port=0 --no-default-browser-check --no-first-run --no-startup-window --mute-audio --disable-background-networking --disable-background-timer-throttling --disable-client-side-phishing-detection --disable-hang-monitor --disable-popup-blocking --disable-prompt-on-repost --disable-sync --disable-translate --disable-blink-features=AutomationControlled --metrics-recording-only --safebrowsing-disable-auto-update --no-sandbox --ignore-certificate-errors --window-size=1920,1080 --pageLoadStrategy=none --throwExceptionOnScriptError=true --user-data-dir=/tmp/pulsar-root/context/browser/br.66b305
21:17:11.427 [r-worker-2] INFO  a.p.p.p.b.d.cdt.ChromeDevtoolsDriver - TypeError: Cannot read properties of null (reading 'textContent')
    at nxonwDutils__.checkPulsarStatus (<anonymous>:183:91)
    at nxonwDutils__.waitForReady (<anonymous>:151:26)
    at <anonymous>:1:15
>>>__pulsar_utils__.waitForReady(55, 5)<<<
21:17:11.928 [r-worker-2] INFO  a.p.p.p.b.d.cdt.ChromeDevtoolsDriver - TypeError: Cannot read properties of null (reading 'textContent')
    at nxonwDutils__.checkPulsarStatus (<anonymous>:183:91)
    at nxonwDutils__.waitForReady (<anonymous>:151:26)
    at <anonymous>:1:15
>>>__pulsar_utils__.waitForReady(55, 5)<<<
...
...
...

这个错误为什么会发生呢?

platonai commented 1 year ago

可能原因:网页是空的,没有解析成完整的 DOM。当本地网络或者代理网络发生临时故障时会出现这类错误。

Possible reason: the web page is empty and has not been parsed into a complete DOM. It can happen when the local network or the proxy network is failed.