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

i m unable to authenticate with wrangler

i'm unable to authenticate with wrangler. i can go through wrangler login and approve everything just fine, but when it comes to running something like wrangler dev, i get authentication errors such as Authentication error [code: 10000]. i manually created an API token via the dashboard, and if i use that with the CLOUDFLARE_API_TOKEN environment variable, then things work! i wonder if the token generated by wrangler login is invalid somehow?...

Error: Could not proxy request: TypeError: fetch failed

I recently upgraded to wrangler 2.12.0 and started getting [pages:err] Error: Could not proxy request: TypeError: fetch failed error all of a sudden. I thought this is an issue with the new version and so downgraded to the version (2.9.1) which I was using earlier but issue still persists. Changed the port of vite dev server to make sure that the port number is not in use already but issue still remains. What could be the reason behind this issue?

and `jq` can extract super easily

and jq can extract super easily:
curl_prod accounts/:account/pages/projects/:pages-project/deployments -s | jq '.result[0].deployment_trigger.metadata.commit_hash
curl_prod accounts/:account/pages/projects/:pages-project/deployments -s | jq '.result[0].deployment_trigger.metadata.commit_hash
...

I m running into an `Authentication

I'm running into an Authentication error [code: 10000] error when executing wrangler dev @ 2.8.1 and I am wondering if I have the correct permission scopes to run the wrangler v2 dev command, can someone confirm if this is sufficient scoped permissions? - account (read) - user (read) - workers (write)...
No description

If I do that I can t run wrangler it s

If I do that, I can't run wrangler (it's not actually installed anywhere when zero-install is used, so I have to use yarn wrangler, which I can't do from outside the project)

That’s the deprecated Wrangler 1

That’s the deprecated Wrangler 1

Logpush Worker

To enable logpush simply add logpush = true to your wrangler.toml Then head to the logpush dash: https://dash.cloudflare.com/?to=/:account/logs And create a job ...

Hi how would I go about using wrangler

Hi, how would I go about using wrangler for dev environment with next.js in edge mode as described in https://developers.cloudflare.com/pages/framework-guides/deploy-a-nextjs-site/ ? I'm making a next.js app to be deployed on pages, not as static export but using the edge runtime. But there is nothing about how to run that locally with wrangler.

Are you running an install before the

Are you running an install before the action?

Hello one my workers suddenly can t be

Hello, one my workers suddenly can't be published anymore, with a workers.api.error.internal_server [code: 10002] error. There's no error at compile time, and the wrangler.toml file has been untouched for 2 weeks (git is my witness). Last time I published it was 2 days ago, and now with reversed changes I still can't publish it. So is it just the Cloudflare's API going through some troubles (and status page is up to date), or potentially breaking changes introduced to wrangler?...

Anyone have a tool they like for bundle

Anyone have a tool they like for bundle size analysis?

Basically with Pages you would only pay

Basically, with Pages, you would only pay for serving the on-demand assets, all static asset requests would be free.

Invalid regexp error

I upgraded today to latest wrangler2, when try starting pages dev mode I get this error message: ✘ [ERROR] [plugin wrangler-module-collector] Invalid regular expression: 112294 │ filter: new RegExp("^(" + [...props.wrangler1xlegacyModuleReferences.fileNames].join("|") + ")$") Anyone else facing some similar problem?...

wrangler secret put raw mode error

I'm trying to setup secret with echo "VALUE" | wrangler secret put MY_SECRET and I keep getting the same error. (I'm using wrangler@beta) ```sh ERROR Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default....