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? Thanks24 Replies
?pages-deployment-id
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.Do you have this?
sure, one of many, 8d9d9a06-f8a7-438a-8a16-b594248cf8f1
this is my last attempt
Thanks, the error returned on that one is
so why creating a manual distribution i can release it?
Not sure, do you have an ID from a manual deploy that succeeds?
this is the preview that works d674782e-a51c-48b4-ac79-bd6d8cb4fb8c
Thanks
What do you mean by "manual distribution"
Are you talking about the dashboard drag and drop?
The succuessful one is a direct upload
yes, from the dashboard, dragging the directory
Oh
Okay yeah
The dashboard upload won't deploy functions, so that's why
aaaah ok now it's clear
there is a way to see the fail logs?
Many logs and errors show up on the dashboard, I believe its a known issue that this particular one doesnt
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
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
Ok, great, thanks
@Erisa | Support Engineer it there a way to skip js modules to go inside the worker?
¯\_(ツ)_/¯
I'm not sure, what do you mean? Any package you import will get bundled in
@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
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 dircan 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?
I am getting this error how to solve this issue
Please create your own thread rather than reusing an unrelated one