Cloudflare Developers

CD

Cloudflare Developers

Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news

Join

CORS Error

What's wrong here I tried all AI premium models still i cant solve the issues.

How to define queues in wrangler.toml for production and beta environments?

[env.beta] [[queues.consumers]] binding = "bindingmatch" queue = "match-beta" ...

Snippets help

Only concern at the moment is exception handling in snippets, whatā€™s the best way? If any type of error occurs in the snippet how would I know and how should I handle it? In workers, Iā€™d either catch exceptions and log/report or use tail and send to sentry for example. Can also see error analytics in workers/etc but not for snippets....

All automatic worker deploys through github are failing, but succeeding when run manually

I've set up automatic deployment on pushes to our main branch, but whenever I push to main I get the following build error listing all of my dependencies: ``` Initializing build environment... Success: Finished initializing build environment Cloning repository......

Browser Rendering Limits

I was wondering if there was any way to increase the limits on browser rendering. Two concurrent browser sessions is too low for my use-case.

Browser Rendering API Puppeteer not rendering a PDF

Using the Browser Rendering API to create a new page, go to the URL of a PDF, and then return a screenshot doesn't seem to be able to load the PDF itself, any suggestions or is this simply not one of those use cases the Browser Rendering API should be used for? šŸ˜… Slimmed down version of my Worker code: ```ts...
No description

How to send an APN (HTTP2) in Workers in development environment

I am trying to figure out that is it possible to send a request through HTTP/2 in the development environment in the Workers? I am trying to send an APN (Apple Push Notification) in Worker, and it requires HTTP/2. I found out that in the production environment, the fetch function will automatically send HTTP/2 requests if available, but I checked that it always sends HTTP/1.1 requests in the development environment. I would like to know if there is a way to test APN in the development environmen...

Proxy an insecure HTTPS outbound (self signed cert) in workers

I have a service https://myservice.com:18091 it's using a custom HTTPS port and a self signed certificate from an unknown CA. Problem is, - in workers the connection is terminated because the certificate is from an unknown CA - i tried "Full-SSL", but it's using a custom port, so masking it behind a CNAME with full-ssl wouldn't work...

email worker example not working

im trying to make a email worker to handle a contact form, i tried deploying the example worker from the email workers page but it doesnt work and gives a js runtime error Cannot read properties of undefined (reading 'send') im using the example from here https://developers.cloudflare.com/email-routing/email-workers/send-email-workers/ ...

Your worker restarted mid-request. Please try sending the request again.

Locally with wrangler 3.83.0 the 4 success requests, 1 every 4th or 5th request fails with 503 and that message, don't know if this is for deployed ones as well as in production there is a retry mechanism and after 5 fails it logs the error
No description

Set a wp cron job on workers

Hello guys hope you are doing good i want to know if it is possible to trigger a wp cron job directly on workers to avoid blowing the server

I'm Building a worker application with Hono how can I change the PORT

i have created an app using npm create hono@latest my-app and selected cloudflare workers and the wrangler CLI is good but i have two desires 1. I want to run application on my desired ports 2. rather using wrangler can i run locally as in traditional hono application we use to run using this command "dev": "tsx watch src/index.ts"...

Can't add custom routes in wrangler.toml.

When I tried to add custom routes, I encountered this error. Does anyone know how to resolve it? Thanks!
No description

Multiple small workers or one large worker

For each of my projects, should I have one worker with all the different parts required, or many little workers? I'm leaning towards one worker

Proxy requests from Workers -> Shopify

Hello, if I proxy requests to a shopify store using a worker, is that going to be considered an O2O proxy, as explained in the Cloudflare for platforms docs for Shopify? My main concern is to use workers but avoid getting rate limited or blocked by Shopify's bot protection mechanisms....

D1 Response time slow

Using cloudflare workers to retrieve data from the d1 Database has been taking 200+ms on the oceania servers is there any way to speed up performance? When using the console to test performance Response times can be 2000ms with only the query being 0.2ms for 20 rows of 7kb of data.

Error: string or blob too big: SQLITE_TOOBIG

By default, SQLite has a maximum string length (SQLITE_MAX_LENGTH) of a gigabyte, adjustable to around 2GB (docs). I ran in to the following error while adding a row of length 2,288,921 to the new in-durable-object SQLite DB:
Error: string or blob too big: SQLITE_TOOBIG
Error: string or blob too big: SQLITE_TOOBIG
Was this limit intentionally set to 1/500 of the default value? Is there a way of raising it?...

pending nameserver update

I got my domain through Cloudflare and Iā€™m getting a pending name server update and I donā€™t know how to fix it or update my name servers it says update the names servers at your register to activate Cloudflare services for this domain but I registered it through Cloudflare I have to clue how to fix this

Workers with Kafka

Hey, has anyone ever successfully connected a Cloudflare Worker to a Kafka topic? I know the Upstash integration exists, but I'm looking for something that integrates with Confluent Cloud.

support id-ec-PublicKey in node:crypto

Hi there, I'm currently working with the Apple App Store Server API and trying to run their apple/app-store-server-library on CF worker. I turned on nodejs_compat_v2 compatibility flag and the compatibility_date is 2024-09-23, currently I am getting an error in node:crypto complaining Unrecognized or unimplemented EC curve "id-ecPublicKey" requested Really appreciate for any help / suggestionsšŸ™...