Avocadio
Avocadio
CDCloudflare Developers
Created by Avocadio on 2/21/2024 in #workers-help
can not add r2 to subscription
No description
14 replies
CDCloudflare Developers
Created by Avocadio on 2/13/2024 in #workers-help
how cloudflare handles 2FA logins?
No description
3 replies
CDCloudflare Developers
Created by Avocadio on 2/12/2024 in #workers-help
sending email to unverified users from email workers
i building a user register system. when a user tries to register i send email to them basically. can i send email to unknown users from email workers is it possible?
8 replies
CDCloudflare Developers
Created by Avocadio on 1/18/2024 in #workers-help
can not open my domain in chrome but i can in safari
it is really weird. when i send http request it returns correct website. in chrome or in my phone's safari domain does not works is there a kind of cache or something that does not make sense
5 replies
CDCloudflare Developers
Created by Avocadio on 9/13/2023 in #workers-help
Can i use elysia on cloudflare workers?
If so how cna i use it?
1 replies
CDCloudflare Developers
Created by Avocadio on 9/11/2023 in #workers-help
Constellation 500 Error
No description
1 replies
CDCloudflare Developers
Created by Avocadio on 9/8/2023 in #workers-help
What is difference between NodeJS Compat Flags
what is the difference between thoose two?
node_compat = true
compatibility_flags = ["nodejs_compat"]
node_compat = true
compatibility_flags = ["nodejs_compat"]
When i use node_compat = true flag for my web scraper worker, i get an error that says node:buffer can not be resolved but the other one works fine. So whats the difference
3 replies
CDCloudflare Developers
Created by Avocadio on 9/6/2023 in #workers-help
Why do i need to import Fetcher from @cloudflare/workers-types
import puppeteer from "@cloudflare/puppeteer";
import { Fetcher } from "@cloudflare/workers-types";

interface Env {
MYBROWSER: Fetcher;
}

export default {
async fetch(request: Request, env: Env): Promise<Response> {
const browser = await puppeteer.launch(env.MYBROWSER);
const page = await browser.newPage();
await page.goto("https://example.com");
const metrics = await page.metrics();
await browser.close();
return Response.json(metrics);
},
};
import puppeteer from "@cloudflare/puppeteer";
import { Fetcher } from "@cloudflare/workers-types";

interface Env {
MYBROWSER: Fetcher;
}

export default {
async fetch(request: Request, env: Env): Promise<Response> {
const browser = await puppeteer.launch(env.MYBROWSER);
const page = await browser.newPage();
await page.goto("https://example.com");
const metrics = await page.metrics();
await browser.close();
return Response.json(metrics);
},
};
` heello. in code above i have to import Fetcher type. in cloudflare docs they don't import types. and also when i bind Fetcher type to MYBROWSER i can not use it in puppeteer.launch(env.MYBROWSER). i get this error that says argument Fetcher is not assignable to parameter of type 'BrowserWorker'
12 replies
CDCloudflare Developers
Created by Avocadio on 9/4/2023 in #workers-help
I can not establish a worker on remote
wrangler dev --remote; i get this error
Error: WebSocket was closed before the connection was established
at WebSocket2.close (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:108521:11)
at close (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:127122:14)
at /usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:127230:7
at jh (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:29688:15)
at exports2.unstable_runWithPriority (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:25660:16)
at Pc (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:26308:16)
at Qg (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:29651:18)
at /usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:29640:13
at V (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:25585:22)
at Timeout.w [as _onTimeout] (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:25420:13)
Emitted 'error' event on WebSocket instance at:
at emitErrorAndClose (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:108968:17)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Error: WebSocket was closed before the connection was established
at WebSocket2.close (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:108521:11)
at close (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:127122:14)
at /usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:127230:7
at jh (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:29688:15)
at exports2.unstable_runWithPriority (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:25660:16)
at Pc (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:26308:16)
at Qg (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:29651:18)
at /usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:29640:13
at V (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:25585:22)
at Timeout.w [as _onTimeout] (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:25420:13)
Emitted 'error' event on WebSocket instance at:
at emitErrorAndClose (/usr/local/lib/node_modules/wrangler/wrangler-dist/cli.js:108968:17)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
11 replies
CDCloudflare Developers
Created by Avocadio on 8/4/2023 in #general-help
Routing Configuration Does Not Work at all
Im tryna use the routing feature in workers but im stuck. I did not understand what can i do with it and i don't even understand how to use it can you guys help
2 replies