Failed: an internal error occurred.

Trying to get my next app running on pages and everything seem to build ok till i get this error: 'Failed: an internal error occurred. If this continues, contact support: https://cfl.re/3WgEyrH' It doesnt give any other message so ive no idea what could be the issue. Account ID: 50e11a2b8a33af74d04304e1d3097741 Deployment ID: c3a36429-9d58-419c-a3da-d2745a5175d1
15 Replies
nestorF
nestorF9mo ago
Hi there, Thanks for contacting Cloudflare Support. Would it be possible for you to provide your Cloudflare Email account so that we open a ticket for you?
chri521
chri521OP9mo ago
Responded to your pm @nestorF
nestorF
nestorF9mo ago
Thank you! I have sent you an Email from the ticket.
arbfay
arbfay9mo ago
Same for me @nestorF . I've raised a ticket with support: #3213065 I can see many other posts with this issue. So I presume something is wrong with CF Pages today, but the status page still doesn't show anything (it's been ongoing for hours)
Walshy
Walshy9mo ago
There's no known issue I've checked your ticket but I can't see any deployments on that project. Did you delete it?
arbfay
arbfay9mo ago
No, that's the issue, it doesn't get deployed. I get the error 8000000.
No description
arbfay
arbfay9mo ago
@Walshy | Deploying Found the issue! It turns out the _worker.js file was 27.5MB (but the limit is 25MB right?). Somehow, it got uploaded fine (probably because gzipped), but when it was time to deploy, because of the size, it failed somewhere deeper down the API. 27.5MB is ridiculously big, I didn't pay attention. I found the culprit: an icon library that was loading all the icons despite using only a few... I removed it and now it gets deployed just fine. However, the error message is just a generic 8000000, which I think is wrong. It should be something more revealing.
James
James9mo ago
gotta love barrel files
chri521
chri521OP8mo ago
Havent had any response to the ticket, how long is the typical wait time?
Walshy
Walshy8mo ago
let me see what's the ticket ID you have?
chri521
chri521OP8mo ago
3212946
Walshy
Walshy8mo ago
The issue is your Worker is too large (same as arbfay above)
chri521
chri521OP8mo ago
Thanks, any tips to help identifty what is making it to big?
Walshy
Walshy8mo ago
Err if you can build it locally, in theory there's a _worker.js folder you can check @Better James would be the best to say though as this is a next project
James
James8mo ago
Yeah, you you can examine your worker's bundle in the output directory where there's the workerjs dir - .vercel/output/static/_worker.js. Common problems are having really chonky dependencies or ones that aren't treeshaken properly, such as icon libraries with barrel files.
Want results from more Discord servers?
Add your server