Closed notatallshaw closed 3 years ago
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
I've since got a much more powerful computer, so I don't personally experience this issue any more, but it still would probably be good?
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 10 days
This issue has been closed because it is stale. Reopen if necessary.
Expected Behavior
Errors generated by Restart Chrome Feature should be carefully handled
Current Behavior
By setting the new Restart Chrome Flag the performance is significantly improved on my machine (both CPU and memory as Chromium processes aren't endlessly spawned and kept around), however the script eventually fails as it does not handle the errors caused by restarting Chrome.
Am able to consistently reproduce this error but I do understand though if this is not a priority.
Steps to Reproduce
Error: Protocol error (Network.setUserAgentOverride): Target closed. at \streetmerchant\node_modules\puppeteer\lib\cjs\puppeteer\common\Connection.js:208:63 at new Promise ()
at CDPSession.send (\stock\streetmerchant\node_modules\puppeteer\lib\cjs\puppeteer\common\Connection.js:207:16)
at next (\streetmerchant\node_modules\puppeteer-extra-plugin-stealth\evasions\sourceurl\index.js:30:43)
at CDPSession.send (\streetmerchant\node_modules\puppeteer-extra-plugin-stealth\evasions\sourceurl\index.js:46:18)
at Plugin.onPageCreated (\streetmerchant\node_modules\puppeteer-extra-plugin-stealth\evasions\user-agent-override\index.js:180:18)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:94:5)
at async Plugin._onTargetCreated (\streetmerchant\node_modules\puppeteer-extra-plugin\dist\index.cjs.js:494:17)
npm ERR! code 1
npm ERR! path \streetmerchant
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c npm run compile && node build/src/index.js
npm ERR! A complete log of this run can be found in: npm ERR! \npm-cache_logs\2021-02-08T17_44_22_546Z-debug.log
Logs