A request to the Cloudflare API failed

Background To deploy the project, I build it with pnpm next-on-pages, and then deploy it with wrangler pages deploy. Issue When I run the deploy command, then the script throws an error:
Compiled Worker successfully
Uploading Worker bundle
Uploading _routes.json

[ERROR] A request to the Cloudflare API (/accounts/10588302399247a4add0cce49f3d28ee/pages/projects/<PROJECT_NAME>/deployments) failed.

An unknown error occured. Contact your account team or Cloudflare
support: https://cfl.re/3WgEyrH. [code: 8000000]
Compiled Worker successfully
Uploading Worker bundle
Uploading _routes.json

[ERROR] A request to the Cloudflare API (/accounts/10588302399247a4add0cce49f3d28ee/pages/projects/<PROJECT_NAME>/deployments) failed.

An unknown error occured. Contact your account team or Cloudflare
support: https://cfl.re/3WgEyrH. [code: 8000000]
I used to deploy projects a few days ago, but now I can't. How may I start deploying again? Environment
"@cloudflare/next-on-pages": "^1.12.1",
"wrangler": "^3.36.0"
"@cloudflare/next-on-pages": "^1.12.1",
"wrangler": "^3.36.0"
2 Replies
Erisa
Erisa4mo ago
It happens consistently when you deploy the same thing, and you didn't make any changes to the project code that might have caused it? Could you also just to be sure, try updating to the latest wrangler? It's up to 3.65.1 now
lettucebaran
lettucebaran4mo ago
@Erisa thanks for the diagnostic idea I found the problem. I created a new page.tsx and added export const runtime = 'edge';. After removing export const runtime = 'edge';, I could deploy the page. Thanks!
Want results from more Discord servers?
Add your server