foreign-sapphire
foreign-sapphire3y ago

Error net::ERR_NO_SUPPORTED_PROXIES

Hi, I'm trying to use your proxy but getting error net::ERR_NO_SUPPORTED_PROXIES. I've followed your blog post (article no. 1). https://blog.apify.com/4-ways-to-authenticate-a-proxy-in-puppeteer-with-headless-chrome-in-2022/
import puppeteer from "puppeteer";

const proxy = (() => {
const credentials = {
username: "groups-RESIDENTIAL",
password: "###",
};

return {
...credentials,
url: `http://${credentials.username}:${credentials.password}@proxy.apify.com:8000`,
};
})();

const browser = await puppeteer.launch({
args: [`--proxy-server=${proxy.url}`],
});

const page = await browser.newPage();

await page.authenticate({
username: proxy.username,
password: proxy.password
});
import puppeteer from "puppeteer";

const proxy = (() => {
const credentials = {
username: "groups-RESIDENTIAL",
password: "###",
};

return {
...credentials,
url: `http://${credentials.username}:${credentials.password}@proxy.apify.com:8000`,
};
})();

const browser = await puppeteer.launch({
args: [`--proxy-server=${proxy.url}`],
});

const page = await browser.newPage();

await page.authenticate({
username: proxy.username,
password: proxy.password
});
Thank you for your help.
Apify
4 ways to authenticate a proxy in Puppeteer in 2022
Authenticate your proxy in Puppeteer with Headless Chrome.
5 Replies
Lukas Krivka
Lukas Krivka3y ago
Hello, did you have paid account at the time of testing this? External usage requires paid account. I also recommend using the Crawlee wrapped functionality PuppeteerCrawler or lauchPuppeteer for easier proxy usage
foreign-sapphire
foreign-sapphireOP3y ago
Yes, I've upgraded my account because of it but that didn't helped. I'm afraid that using Crawlee I would exceed Vercel's serverless functions limit of 50 MB - or do you have different experience with Vercel?
Lukas Krivka
Lukas Krivka3y ago
The biggest thing is Chromium itself which you need as well but maybe that is provided by Vercel outside of this restriction. You can try just @crawlee/puppeteer https://crawlee.dev/api/puppeteer-crawler package. I think you just need to remove username and credentials from the args as shown here in 2nd answer https://stackoverflow.com/questions/49376910/unable-to-use-proxy-with-puppeteer-error-err-no-supported-proxies-gets-thrown
Stack Overflow
Unable to use proxy with puppeteer. Error: ERR_NO_SUPPORTED_PROXIES...
How to set up a proxy with puppeteer? I tried the following: (async () => { const browser = await puppeteer.launch({ headless: false, args: [ '--proxy-server=htt...
fascinating-indigo
fascinating-indigo2y ago
Were you able to make crawlee run in a Vercel serverless function? I get an Error: Cannot find module 'playwright' when trying to do so.
Lukas Krivka
Lukas Krivka2y ago
You have to install playwright separately

Did you find this page helpful?