An unknown error occured. Contact your account team or Cloudflare support: https://cfl.re/3WgEyrH.
Background
I made changes to my Next.js project. I found out which lines cause the script to throw an error, but I don't understand why. So, I am blind trying to navigate on an unknown path.
My deployment command is:
Problem
The error I receive after trying running the deployment command:
Environment
Account ID:
10588302399247a4add0cce49f3d28ee
Question
1. How can I see the error in detail? Because this generic error
2. Could someone please help me in general related to this error, because I am extremely confused and frustrated. I received this error maybe 20 times today. At this point, I have to commit 1 function and re-run the deployment to see if it will throw an error. It takes ages to make any progress.8 Replies
Wrangler's log on my local machine
I only get "Internal Server Error 500"
I try to deploy another page, it has a few lines. The functions that I import are reused in already deployed pages. But for an unknown reason, when I try to add this page and deploy, then I get this error.
When I remove this page, I can deploy my page 🤷
It's one of those frustrating errors that requires someone at Cloudflare to look up what happened, and the cause is impossible to predict because that code literally means that something happened which is unknown / has no error handling
how can i contact someone so they can look into it?
I'll escalate this thread to Support and they'll look when available
awesome, thank you
That's the best I can do
Escalated
Your Function is too large, not sure if you're adding a new dependency or if you were just close before hand but when adding that new page it's just going over
the error message will be improved next week, sorry for the issue
Thanks for replying, it was very helpful.
I used
@next/bundle-analyzer
to analyze my build's size:
I am subscribed to the "Workers Paid" plan. I should have 10 MB after compressed with gzip (source: https://developers.cloudflare.com/workers/platform/limits/#worker-size). My gzip total is 1.73mb, so I am confused how I exceeded the max. function size limit.