Deployment to pages fails without error message

Trying to deploy a pages project. If I deploy only 4 functions, the deployment works. If I deploy 5 functions, it fails. I've deployed a few times with different functions, it looks like its not about which functions I deploy, but about how many, it always breaks at 5+. More problematic is the lack of any error. Deployment with wrangler completes without issues. The dashboard just states a failure, but no message is to be found anywhere.
8 Replies
quambo
quamboOP2y ago
Erisa
Erisa2y ago
Do you have a deployment id for any of the failures? ?pages-deployment-id
Flare
Flare2y ago
The Pages deployment ID is a unique build identifier. It's the UUID in the browser bar (for example, a URL would be dash.cloudflare.com/ACCOUNT_ID/pages/view/PROJECT/DEPLOYMENT_ID where the deployment ID looks something like a398d794-7322-4c97-96d9-40b5140a8d9b). This ID can help troubleshoot some issues with Pages builds so if you have a failing build make sure you grab that ID for the Pages team to use.
quambo
quamboOP2y ago
I was made aware of the fact that under the hood functions are merged into a single worker, so it’s the size limit I’m hitting. Error message would have helped though. deployment is 0798694d-e8b6-45ec-9f8f-39becaa8d9cc
Erisa
Erisa2y ago
The error I see for that one is Error: Script startup exceeded CPU time limit.
quambo
quamboOP2y ago
maybe because it got too large and thus got slow?
Erisa
Erisa2y ago
Perhaps, since I believe that limit includes parsing the script as well I would have expected a different error if it exceeded the 10 MB limit though
quambo
quamboOP2y ago
I'm in the process of reducing our code as @HardAtWork recommended (https://discord.com/channels/595317990191398933/789155108529111069/1124737471729631313), by separating code with large dependencies into separate workers and integrating them with servicebindings.
Want results from more Discord servers?
Add your server