Getting 'puppeteer err_no_supported_proxies socks5h' Error – How to Fix or Work Around It?

14 Replies, 1036 Views

Hey! I feel your pain with the puppeteer err_no_supported_proxies 'socks5h' error. It’s such a headache, right? I ran into this a while back and ended up using `socks-proxy-agent` as a workaround. Yeah, it’s an extra step, but it’s pretty straightforward once you set it up.

Here’s a quick snippet that worked for me:
```javascript
const SocksProxyAgent = require('socks-proxy-agent');
const agent = new SocksProxyAgent('socks5://your-proxy-address:port');
const browser = await puppeteer.launch({ args: ['--proxy-server=${agent.proxy.host}:${agent.proxy.port}'] });
```
Give it a shot and lmk if it helps!

Messages In This Thread



Users browsing this thread: 1 Guest(s)