Hi all! Does Cloudflare Puppeteer support passing proxy server? This works for regular Puppeteer: `
Hi all! Does Cloudflare Puppeteer support passing proxy server? This works for regular Puppeteer:
const proxyServer = 'example.com:123';
const proxyUser = 'user';
const proxyPass = 'pass';
const browser = await puppeteer.launch(env.MY_BROWSER, {
args: `--proxy-server=${proxyServer}`,
});
const page = await browser.newPage();
await page.authenticate({
username: proxyUser,
password: proxyPass,
});
connectionStartTime > now + 1 minutes using a CRON every minute. But don't see any option, any suggestion?

cf-biso-request-id and cf-biso-devtools request headers when fetching the url. Is there any way to override/remove them? (setExtraHTTPHeaders did not seem to work for these)await client.browserRendering.screenshot.create()browser_rendering but that results in a 400. The wrangler source code uses "browser": https://github.com/cloudflare/workers-sdk/blob/main/packages/wrangler/src/deployment-bundle/create-worker-upload-form.ts#L470-L471
PDFOptions https://pptr.dev/api/puppeteer.pdfoptionsPDFOptions for that pdf endpoint at some point

const browser = await puppeteer.connect(env.MYBROWSER);
const proxyContext = await browser.createIncognitoBrowserContext({
proxyServer: "host:port",
});
const page = await proxyContext.newPage();
// if authentication is required
await page.authenticate({
username: 'username',
password: 'password',
});
await page.goto('https://google.com');
await page.screenshot({ path: 'screenshot.png' });connectionStartTime > now + 1 minutes{
"sessionId": "fcd55f36-8415-4602-aa60-835fc98439ec",
"startTime": 1729683740652,
"connectionId": "2500e575-abe8-4db0-9cd2-f5a542c376ca",
"connectionStartTime": 1729683742094
},✘ [ERROR] A request to the Cloudflare API (/accounts/4f453aab7846de127d0e18aec26d1576/workers/scripts/locum-jobs/versions) failed.
Uncaught TypeError: Cannot read properties of undefined (reading 'indexOf')
at null.<anonymous> (assets/app-YABV1Xlm.js:39099:31) in hasFlag
at null.<anonymous> (assets/app-YABV1Xlm.js:39115:7) in requireSupportsColors
at null.<anonymous> (assets/app-YABV1Xlm.js:39564:29)
at null.<anonymous> (assets/app-YABV1Xlm.js:39694:5) in requireColors
at null.<anonymous> (assets/app-YABV1Xlm.js:39702:19)
at null.<anonymous> (assets/app-YABV1Xlm.js:39704:5) in requireSafe
at null.<anonymous> (assets/app-YABV1Xlm.js:39707:19)
[code: 10021]cf-biso-request-idcf-biso-devtoolssetExtraHTTPHeadersawait client.browserRendering.screenshot.create()browser_rendering"browser"PDFOptionsPDFOptionsconst browser = await puppeteer.launch(env.BROWSER);
const page = await browser.newPage();
await page.goto(url, {
waitUntil: 'networkidle0',
});
const img = (await page.screenshot()) as Buffer;
// Here I upload to R2/handle, return a response, etc.