Ошибка: Error: net::ERR_TUNNEL_CONNECTION_FAILED при использовании proxy puppeteer
Пытаюсь использовать proxy
с puppeteer
на Debian 12.
proxy
приобрел у сервиса froxy. Оттуда же из документации по интеграции скопировал код для теста:
import puppeteer from 'puppeteer';
(async () => {
const browser = await puppeteer.launch({
headless: true,
args: ['--no-sandbox','--proxy-server=proxy.froxy.com:9000'] });
const page = await browser.newPage();
await page.authenticate({
username: 'username',
password: 'password'
});
await page.goto('https://froxy.com/api/detect-ip');
})()
При запуске кода на Windows все работает, браузер запускается с прокси, при запуске на Debian получаю ошибку:
file:///root/parsing/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Frame.js:180 ? new Error(`${response.errorText} at ${url}`) ^ Error: net::ERR_TUNNEL_CONNECTION_FAILED at https://froxy.com/api/detect-ip at navigate (file:///root/parsing/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Frame.js:180:27) at async Deferred.race (file:///root/parsing/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js:33:20) at async CdpFrame.goto (file:///root/parsing/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Frame.js:146:25) at async CdpPage.goto (file:///root/parsing/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.js:563:20) at async file:///root/parsing/tets.js:11:6 Node.js v22.9.0
С чем может быть связана ошибка, куда смотреть?