Vercel responding with 503 (An error occurred with your deployment FUNCTION_INVOCATION_TIMEOUT)
I have created simple nextjs app using create t3 app. it has simple one router that returns a list of products.
database is mongodb. It is working locally getting response from trpc router. but when i check my live vercel app it is returnnng 503 error. i have also integrate MongoDB Atlas to my vercel app.
2 Replies
this error its a long time request process to response, i pass with this into my app (processing pdf large files) you request on tier free vercel its need 10 sec or less to process the request
u can try see
https://vercel.com/guides/what-can-i-do-about-vercel-serverless-functions-timing-out
and check limits of executions
https://vercel.com/docs/concepts/limits/overview#general-limits
Vercel Documentation
How to Fix the "This Serverless Function has timed out" Error
Learn what you can do when your Serverless Functions exceed the execution limits and return a timeout error.
Vercel Documentation
Limits & Limitations
This reference covers a list of all the limits and limitations that apply on Vercel.
in my case i host the solution with EC2 AWS and serverless lambda to make with S3 to reduce size of response