Hey! I had the same issue with puppeteer and socks5h proxies. Turns out, puppeteer doesn’t natively support socks5h proxies out of the box.
What worked for me was using a library like `puppeteer-page-proxy` or `puppeteer-extra-plugin-proxy`. They add proxy support for socks5h and other types.
Here’s a quick example with `puppeteer-page-proxy`:
```javascript
const puppeteer = require('puppeteer');
const useProxy = require('puppeteer-page-proxy');
(async () => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
await useProxy(page, 'socks5h://your-proxy-ip:port');
await page.goto('https://example.com');
await browser.close();
})();
```
Give it a shot and let me know if it works for you!
What worked for me was using a library like `puppeteer-page-proxy` or `puppeteer-extra-plugin-proxy`. They add proxy support for socks5h and other types.
Here’s a quick example with `puppeteer-page-proxy`:
```javascript
const puppeteer = require('puppeteer');
const useProxy = require('puppeteer-page-proxy');
(async () => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
await useProxy(page, 'socks5h://your-proxy-ip:port');
await page.goto('https://example.com');
await browser.close();
})();
```
Give it a shot and let me know if it works for you!
