Cuadrix / puppeteer-page-proxy

Additional module to use with 'puppeteer' for setting proxies per page basis.
423 stars 99 forks source link

Error: new SocksProxyAgent(proxy) #85

Closed charlesbao closed 1 year ago

charlesbao commented 1 year ago

node v16.15.0 puppeteer 19.0.0 puppeteer-page-proxy 1.2.9 socks-proxy-agent 7.0.0

/xxx/node_modules/puppeteer-page-proxy/src/lib/options.js:29 http: new SocksProxyAgent(proxy), ^

TypeError: SocksProxyAgent is not a constructor at setAgent (/xxx/node_modules/puppeteer-page-proxy/src/lib/options.js:29:19) at requestHandler (/xxx/node_modules/puppeteer-page-proxy/src/core/proxy.js:19:16) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async $ppp_requestListener (/xxx/node_modules/puppeteer-page-proxy/src/core/proxy.js:83:13) at async HTTPRequest.finalizeInterceptions (/xxx/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.js:188:9)

Cuadrix commented 1 year ago

https://github.com/Cuadrix/puppeteer-page-proxy/releases/tag/1.3.0