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

Error: 8002: Invalid input with @cf/myshell-ai/melotts model

I get this error when trying to use this model with lang: "es". If I change it to lang: "en" it works fine. But I don't understand, I thought this model was multilingual

CPU time `cpu_ms` not set to custom value using Terraform/OpenTofu

Hello there, Since two weeks now, I am trying to set the CPU time cpu_ms of my customer's project to the max limit of 5 minutes (300,000 ms) according to the documentation at https://developers.cloudflare.com/workers/platform/limits/#cpu-time. My customers is on a paid plan for the account and on a the paid plan for the workers. I have set the value in the wrangler.toml as described, I have set the value manually in the dashboard and I even wrote a curl command to set and check the setting before and after deployment. Unfortunately, I am stuck with settings set to Pages Functions billing: CPU time limit: 50 ms and when I click on the edit button, inside of the text input, the value is correctly set to CPU Time Limit (ms): 300000 and a message is stating This change will take effect on the next deployment.. (Re-)Deploying the worker does not do the trick. Using the API for set this setting neither....

Error checking 8080: The container is not listening in the TCP address 10.0.0.1:8080

I encountered an error where the container wasn't listening on the default port I had set in both the index.ts file and the Dockerfile. I've double-checked my configuration and code multiple times, but I still can't spot the issue. If anyone has faced a similar problem before, I’d really appreciate it if you could share your insights. Thank you! Observability...
No description

Different secrets for Staging & Production

How would I override the secrets on the cloudflare workers dashboard with ones specifically for staging following best practices? I know I can use .env.production.vars but that's only for public, hardcoded variables and I need to set secrets.

Is it possible to turn off tls verification for workers in development?

As the title says, I'm using caddy for local development with a locally signed cert and making requests to local dev services fails. It would be nice if i could turn this off in development

Question about Workers AI Abuse Policy & Account Safety

Hi, I'm building a public-facing bot using Workers AI for image generation and had a quick question about the abuse policy. I know Cloudflare has a safety net for things like CSAM, which is great. My question is about account liability. Let's say a bad actor tries to use my bot to generate something illegal, and the Cloudflare filter correctly blocks the request. From Cloudflare's perspective, is that simply a "successful block," or does the fact that the attempt came from my API token put my account in jeopardy? Just want to make sure I understand the risk profile before launch. Thanks for any insight!...

Disable or Customize GitHub Integration Preview URLs on Workers (avoid *.workers.dev)

Hi, I recently migrated from Cloudflare Pages to Cloudflare Workers, and I'm running into an issue with the preview URLs generated through the GitHub integration. I've already disabled the default *.workers.dev domain by turning off the Preview URLs (*-[project].[user].workers.dev) and only left my custom domain ([my_domain]) active. ...

Update Worker's Env Var through the API

I would like to be able to update a Cloudflare worker's env var through the API. It seems like there is a REST endpoint, that allows me to upload a whole new script for a worker + the environment variables, but no endpoint to just update the environment variables themselves + redeploy. Updating the whole script is way too complex for us, as well as error prone, is there a workaround for this? Would it be better to potentially use KV as a storage mechanism for these settings (postgres connection strings and JWT tokens) if env vars are not able to be updated standalone through the API? Or am I missing something in the documentation?...

Nuxt App Deployment to Cloudflare Workers: Questions & Best Practices

Hello, I am planning to deploy my Nuxt application to Cloudflare Workers and have two questions. I would appreciate any insights from those with prior experience: * If my application is subject to a DDoS attack, will I be billed? If so, how have you addressed this issue?...

Unable to Configure Static Assets & Worker Script Routing using `run_worker_first`

Hi we are in the process of porting our Astro.js website which is currently on Cloudflare Pages to Cloudflare workers by using the @astrojs/cloudflare plugin and are facing a issue w.r.t how cloudflare static asset routing which is shooting up our overall workers bill. Being a static site generator, Astro.js outputs index.html files for every webpage on our site. Requests to these static webpages are correctly served by the assets handler and the rest trigger the worker script (which is compiled by the @astrojs/cloudflare plugin) located at ./dist/_worker.js/index.js. ---...

I Feel Like a Moron -- Being on Legacy Images Transformations and I Can't Upgrade???

I get this error: IMAGES_TRANSFORM_ERROR 9432: Bad request: The Images Binding is not available using legacy billing I have an ImagesBinding hooked up to my Worker... but apparently I am on the legacy version of Images. Yet I am in my Dashboard and I can't figure out how to "activate" the correct version of Images so I can do transformations in my Worker. ...

Where to put the build variables in my wrangler.jsonc ?

I have some variables I need at build time and I have now set them in the dashbaord (see the screenshot; they're public, don't worry) but it says that I should update my wrangler.jsonc - but WHERE? I looked through the docs and I can't find where to put those variables... here is my complete wrangler.jsonc: https://github.com/supportmailapp/website/blob/main/wrangler.jsonc...
No description

Unable to Create Workers via GitHub Import Repository

I am unable to create workers using github "Import a repository"

choose random image

I would like to have a bunch of files in R2 bucket, and somehow choose one of those to be main file sometimes. But I have completely no idea how to do it. I saw a question about cron, which made me wonder, as I don't know how to even access server crontab so I can edit it. Or maybe this is just wrong way to do it. I am very far from expert....

Rate limiter binding deleted on deploy

I just deployed an update of my worker with the Wrangler CLI and it deleted the binding I had set in the dashboard. Why??

Workflow type-generation improvement

Hey guys, I'm working with Workflow and expect to have a little stricter type support. Could you take a look and share some thought with this PR? https://github.com/cloudflare/workers-sdk/pull/9705 Thanks a lot....

Image transformation failed 9432: Bad request: The Images Binding is not available using legacy bill

I'm experiencing an issue with Image Transformation using the worker binding. I've attached the binding in my wrangler.jsonc, and I can also see it listed as active under "Bindings" in the Worker's dashboard: ` "images": {...

Failed to use remote binding for R2 in EU jurisdiction

Following this release a few days ago, I went to try remote bindings for R2 but I'm getting this error:
"R2 bucket '<bucket_name>' not found. Please use a different name and try again. [code: 10085]"
"R2 bucket '<bucket_name>' not found. Please use a different name and try again. [code: 10085]"
...

Failed to create cloudflare container

(base) ➜ dexcex npm create cloudflare@latest -- --template=cloudflare/templates/containers-template
npx "create-cloudflare" --template=cloudflare/templates/containers-template
...

Cloud Connectors broke out from under us

I have used a URI Rewrite and Cloud Connector for a long time to distribute updates for our native app via Sparkle. The same app was able to check for updates yesterday, but today the Cloud Connector is not working. We did not change anything about our configuration. When I run Trace, it shows the Cloud Connector being activated, but the response is not from the GCS bucket. Is there a better way to debug this?...