My message was because you pinged Walshy randomly, and not for moderation reasons or from a prior co
My message was because you pinged Walshy randomly, and not for moderation reasons or from a prior conversation.
Error during Puppeteer rendering: TypeError: Cannot read properties of undefined (reading 'fetch')
at PuppeteerWorkers.launch (index.js:11855:32)
at Browser2.fetch (index.js:13414:59) {
stack: TypeError: Cannot read properties of undefined (re…855:32)
at Browser2.fetch (index.js:13414:59),
message: Cannot read properties of undefined (reading 'fetch')
}


wrangler.toml looks like?
connectionStartTime > now + 1 minutes using a CRON every minute. But don't see any option, any suggestion?
Error during Puppeteer rendering: TypeError: Cannot read properties of undefined (reading 'fetch')
at PuppeteerWorkers.launch (index.js:11855:32)
at Browser2.fetch (index.js:13414:59) {
stack: TypeError: Cannot read properties of undefined (re…855:32)
at Browser2.fetch (index.js:13414:59),
message: Cannot read properties of undefined (reading 'fetch')
}
browser = { binding = "MY_BROWSER" }[browser]
binding = "MY_BROWSER"import * as chromeLauncher from "chrome-launcher";
let chrome = await chromeLauncher.launch({
port: await allocatePort(),
chromeFlags: ["--headless", "--disable-gpu"],
logLevel: "info",
});
let chromeInfo = (await fetch(`http://localhost:${chrome.port}/json/version`).then(
(res) => res.json(),
)) as { webSocketDebuggerUrl: string };
let browserWsEndpoint = chromeInfo.webSocketDebuggerUrl;
// then either write out .dev.vars or pass direct to wrangler
exec(`wrangler dev --var BROWSER_WS_ENDPOINT:${browserWsEndpoint}`)import puppeteer from "@cloudflare/puppeteer";
let browserWSEndpoint = env.BROWSER_WS_ENDPOINT;
return await puppeteer.connect(browserWSEndpoint ? { browserWSEndpoint } : env.BROWSER);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
},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,
});const 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.