Open NabiKAZ opened 2 years ago
When I used await useProxy(page, 'socks5://localhost:9150');
get another error:
C:\>node test_proxy.mjs
C:\node_modules\puppeteer\lib\cjs\puppeteer\common\FrameManager.js:156
? new Error(`${response.errorText} at ${url}`)
^
Error: net::ERR_FAILED at https://api.ipify.org/
at navigate (C:\node_modules\puppeteer\lib\cjs\puppeteer\common\FrameManager.js:156:23)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async FrameManager.navigateFrame (C:\node_modules\puppeteer\lib\cjs\puppeteer\common\FrameManager.js:131:21)
at async Frame.goto (C:\node_modules\puppeteer\lib\cjs\puppeteer\common\FrameManager.js:512:16)
at async Page.goto (C:\node_modules\puppeteer\lib\cjs\puppeteer\common\Page.js:1167:16)
at async Timeout._onTimeout (file:///C:/test_proxy.mjs:47:3)
Node.js v17.2.0
We can use resolutions
or overrides
for yarn
and npm
as a temporary solution.
package.json
:
"overrides": {
"socks-proxy-agent": "6.0.0"
},
"resolutions": {
"socks-proxy-agent": "6.0.0"
}
And run yarn install
or npm install
.
I use
tor
proxy. I don't have problem with useargs: ['--proxy-server=socks5://127.0.0.1:9150',...
with eitherhttp
andhttps
. I don't have problem withuseProxy
andhttp
I just have problem withuseProxy
andhttps
Versions:
Sample code:
Errors: