🚀Server function failed to run (FUNCTION_INVOCATION_FAILED)
500: INTERNAL_SERVER_ERROR Code: FUNCTION_INVOCATION_FAILED
The deployed server code (a serverless function) hit an error while running and stopped. The real cause is in the logs.
🤔 Why does it happen?
- Environment variables are missing in the deploy environment
- The server code hit an error that wasn't handled
- It uses file reading or packages that only work on your computer
🔧 Try this
- Find the red errors in your Vercel project → Logs
- Check the environment variables and deploy again (Redeploy)
🤖 Ask your AI like this
I get FUNCTION_INVOCATION_FAILED on my deployed site. Please look at the Vercel logs below, find the cause, and fix it. [Paste the logs here]
Replace the [ ] parts with your own situation, and paste the error with a few extra lines before and after it.
Related terms
Other errors in this group
- Build failed (deploy failed)
Build failed - Missing environment variable
Missing environment variable - Wrong API key
Invalid API key - Timed out (504 Timeout)
504 Gateway Timeout - Domain not found (DNS)
DNS_PROBE_FINISHED_NXDOMAIN - Secure connection error (SSL certificate)
Your connection is not private - Deployed site shows 404 (Vercel NOT_FOUND)
404: NOT_FOUND (Vercel) - Environment variable is undefined in the browser
process.env 값이 브라우저에서 undefined - Only a white screen after deploying
배포했더니 흰 화면만 나와요