Pages deploy fails without logs

Hello! I'm trying to distributing a new app update, I have builded it and I can run it locally using npx wrangler pages dev dist/ When I run the deploy request, it start and then fails. From CF dashboard I can't find any logs. THe strange thing is that if a create a manual distribution, uploading the same directory, it works.. Anyone is having similar problem? Thanks
24 Replies
Erisa
Erisa11mo ago
?pages-deployment-id
Flare
Flare11mo 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.
Erisa
Erisa11mo ago
Do you have this?
Alessandro
Alessandro11mo ago
sure, one of many, 8d9d9a06-f8a7-438a-8a16-b594248cf8f1 this is my last attempt
Erisa
Erisa11mo ago
Thanks, the error returned on that one is
Your Functions script is over the 1 MiB size limit (workers.api.error.script_too_large)
Your Functions script is over the 1 MiB size limit (workers.api.error.script_too_large)
Alessandro
Alessandro11mo ago
so why creating a manual distribution i can release it?
Erisa
Erisa11mo ago
Not sure, do you have an ID from a manual deploy that succeeds?
Alessandro
Alessandro11mo ago
this is the preview that works d674782e-a51c-48b4-ac79-bd6d8cb4fb8c
Erisa
Erisa11mo ago
Thanks
Walshy
Walshy11mo ago
What do you mean by "manual distribution" Are you talking about the dashboard drag and drop?
Erisa
Erisa11mo ago
The succuessful one is a direct upload
Alessandro
Alessandro11mo ago
yes, from the dashboard, dragging the directory
Erisa
Erisa11mo ago
Oh Okay yeah The dashboard upload won't deploy functions, so that's why
Alessandro
Alessandro11mo ago
aaaah ok now it's clear there is a way to see the fail logs?
Erisa
Erisa11mo ago
Many logs and errors show up on the dashboard, I believe its a known issue that this particular one doesnt
Alessandro
Alessandro11mo ago
Ok, the funny part is that I haven't edited my function code.. I'll look at it thanks @Erisa | Support Engineer when you talk abount the limit, is this the file over the limit right? dist/_worker.js
Erisa
Erisa11mo ago
Yeah its gzipped and the result has to be less than 1MiB on free plan and 10MiB on paid plan so if youre on free you can also subscribe to Workers Paid to make it go away
Alessandro
Alessandro11mo ago
Ok, great, thanks @Erisa | Support Engineer it there a way to skip js modules to go inside the worker?
Erisa
Erisa11mo ago
¯\_(ツ)_/¯ I'm not sure, what do you mean? Any package you import will get bundled in
Alessandro
Alessandro11mo ago
@Erisa | Support Engineer are you sure the file over the limit is _worker.js? I just released successful and that file is 1.22MiB THe last release is 71d522d1-cfad-4c47-862f-52aa4e3c83f3 COuld oyu please tell me the file name over 1MiB in the 8d9d9a06-f8a7-438a-8a16-b594248cf8f1 deploy? Thanks
Erisa
Erisa11mo ago
The file is gzipped before upload, so it will be compressed below its raw file size No filename is visible, it will either be all files in the functions dir bundled together or _worker.js in your output dir
Alessandro
Alessandro11mo ago
can you see the actual gzip dimension for the 71d522d1-cfad-4c47-862f-52aa4e3c83f3 ? I just want to compare it with mine I'm asking because I can see that my gzip version is ~ 500KiB, so probably you are using a lower compression level. Can I upload the worker.js gziped version?
MD AMIR SOHAIL
MD AMIR SOHAIL11mo ago
I am getting this error how to solve this issue
Erisa
Erisa11mo ago
Please create your own thread rather than reusing an unrelated one
Want results from more Discord servers?
Add your server
More Posts