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

Enterprise customer - cannot perform I/O error

Hi all - I was told to come hear from enterprise support as they were not sure what the issue was. We're getting a couple of errors on a worker of ours that interacts with a durable object: 1. Cannot perform I/O on behalf of a different request. I/O objects (such as streams, request/response bodies, and others) created in the context of one request handler cannot be accessed from a different request's handler. This is a limitation of Cloudflare Workers which allows us to improve overall performance. (I/O type: OutgoingFactory)...

Embedding worker in Notion

Iโ€™m trying to embed my worker in my Notion page, but when Notion sends a HEAD request to my worker, Iโ€™m not sure what to return to let Notion know that this URL can be embedded. Can you help me out with this?

connecting external db in queue consumer

hello i have a queue consumer that writes some data to an external database (clickhouse in this case) it works on local with "npx wrangler dev" but when i push it to live it just gives me an error that says it cannot connect. is there a limitation in the queue consumers about connecting external apis ?...

Quick question re: Browser Rendering limit and Queues max_concurrency

I understand that there's a limit of 2 concurrent browsers per account (https://developers.cloudflare.com/browser-rendering/platform/limits/). Since I'm doing rendering inside a Queue, it makes sense that I set its max_concurrency to 2. But looking at the log, all my tasks keep (re)using 1 browser instance. My question: If I set my queue's max_concurrency to >2 (say, 5), what will happen if there's already 2 concurrent browsers running? Will the rest wait, or simply crash?...

"readable is not async iterable" generating PDF with @cloudflare/puppeteer + Browser Rendering

Steps to reproduce the problem: Launch puppeteer and instantiate a Page with some content: `const browser = await puppeteer.launch(env.MYBROWSER); const page = await browser.newPage();...

Is it possible to store data temporary to use it in between workers?

The issue is I have created an API for zapier which requires an id to be shared between workers to fetch the required and using zapier it is not possible to share data at the moment. So I wanted to now if there is way to store data temporarily and fetch it on demand?

Billing limits on worker

We just set up a cloudflare worker for generating og images. Is there any way we could force a limit of set $ per month (or something similar). Don't want to go bankrupt if someone ddos-es the worker endpoint....

HTML rewriter

Hi, I use html rewriter to rewrite assets like scripts and css. It works great. But more and more websites are using modules and I can't find a way to rewrite those imports... Regards,...

[ERROR] fetch failed --at npm run deploy

i deployed a backend project recently but now i am trying to deploy it is not working. on the top of that there is no such specific error that is showing beside of - X [ERROR] fetch failed. NEED HELP
No description

Is there an alternative to --branch on worker deploys like pages?

A feature we use extensivley on pages is the --branch flag so we get dynamic preview environments. On workers though, we dont have the same flexibility. We have --env but that seems to be required to be --preview which doesnt work as we need individual environment domains to test on. Is this something anyone else has got around another way?

File Upload in Workers via Formdata

Hello im currently trying to build an endpoint which lets me upload files to a R2 Bucket. But the formdata gives me a string in result instead of an object. I used to do this before but now its not an object anymore. Did this got changed? Can someone give me a example code snippet?...

Is there anyone who can assist us with removing the fetch limit?

Hello, We need assistance with removing the fetch limit on our pages project. We are encoutering an issue where the fetch in pages function returns a 429 error when the nr of requests increases. We've experienced this same issue on another project and were able to resolve it wiht support by removing the limit. You can reference the previous resolved ticket here: https://support.cloudflare.com/hc/en-us/requests/3278800 We have submitted multiple support ticket under our Business Plan over the past several weeks, but all tickets have been disappeared without any feedback. One of the recent ticket numbers is 01007352. I believe there may be technical problems with the support system....

How to access the D1 without the Wrangler ?

I create the Worker via Cloudflare API and it is not possible to create wrangler.toml The code contains: `addEventListener('fetch', event => {...

VS Code debugger stuck on first breakpoint

Hey ๐Ÿ‘‹ I've been using the VS Code debugger for a few days to debug my Workers project, and it worked perfectly. But for some reason it stopped working since yesterday. The debugger hits the 1st breakpoint, and it got stuck: I can't see variables values or anything, and I can't even continue the debug session after that, the debugger crashes in some way. Also, the code is executed even if the debugger hits the breakpoint. In my terminal and in the debug logs I have the following message, that I believe might show the source of the problem: ...

Upload Cloudflare Image from Workers?

It's not obvious from https://developers.cloudflare.com/images/upload-images/ how to upload images from a Worker. Is it by URL? Considering other services have bindings, I'm thinking there might be something similar for Image.

Error after running command - npx wrangler pages deploy dist/ error happens

```:sparkles: Compiled Worker successfully Your worker has access to the following bindings: - D1 Databases: - DB: test (e501084c-f3f4-423e-a47d-8d829c92bfe7) โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ...

I get 'undefined' when i get a certificate from the mtls_certificates

I am trying to call/fetch a url and pass along a certificate as described here: https://developers.cloudflare.com/workers/runtime-apis/bindings/mtls/ I uploaded the certificate to my worker and i already added the following to the wrangler.toml mtls_certificates = [...