A request to the cloudflare api failed
When running wrangler deploy after vite build, getting the following error:
✘ [ERROR] A request to the Cloudflare API (/accounts/1b4084a019e362dcc38aaf959044234e/workers/scripts/fluent-bi-website/versions) failed.
An unknown error has occurred. If this error persists, please file a report in the workers-sdk
GitHub repository (https://github.com/cloudflare/workers-sdk/issues) or reach out to your account
team. [code: 10002]
If you think this is a bug, please open an issue at:
https://github.com/cloudflare/workers-sdk/issues/new/choose
note that I've tried:
- reverting to prior commit
- updating packages/modules
-removing .wrangler and node_modules and reinstalling/building
deploying under a new worker name
- changing compat date
- logging out and back in with wrangler logout/login
- deploying other workers using bun run deploy works fine, only this one
it only started happening randomly yesterday on only this worker
also created a community post: https://community.cloudflare.com/t/a-request-to-the-cloudflare-api-failed/809429
but maybe someone here also knows
thanks!
4 Replies
Was able to resolve it myself! See: https://github.com/cloudflare/workers-sdk/issues/9444
GitHub
[code 10002] Error deploying worker built with vite · Issue #9444 ...
What versions & operating system are you using? Wrangler v4.18.0, Node v20.18.2, Windows 11 Please provide a link to a minimal reproduction No response Describe the Bug I'm getting this err...
Not good that it's an opaque error response, but glad you got it fixed!
Yes.. it took me 1.5 days to figure this one out. Would be nice if the error was more specific
Thank you so much. This is def a breaking change, I haven't touched this code in months
@Wonky Onion