Next.js Discord

Discord Forum

504: GATEWAY_TIMEOUT

Unanswered
Chinese Alligator posted this in #help-forum
Open in Discord
Chinese AlligatorOP
his Serverless Function has timed out.

Your connection is working correctly.

Vercel is working correctly.

504: GATEWAY_TIMEOUT Code: FUNCTION_INVOCATION_TIMEOUT ID: bom1::mpcsx-1728301811703-811afe4506d2 and the logs are [GET] / status=504
and github repo is : https://github.com/RUDRANSHFLY/Linkdln-Clone

15 Replies

Chinese AlligatorOP
it works perfectly in locally
gives me error in while deploying
Komondor
is the function taking longer to execute, and is timing out?
I think vercel limits the execution of a serverless function to 10s right?
Chinese AlligatorOP
Yes
But where is wrong in mine code I m not geeting that
U know what is wrong with mine code or have issue with other one ?
How much time does it take when u run it locally
Komondor
is the serverless function trying to connect to a database? Perhaps the connection attempt is timing out
@devv How much time does it take when u run it locally
Chinese AlligatorOP
It such doesn't know eaxt but it runs perfect
I m using the mongo db atlas
Chinese AlligatorOP
i delted the whole project and re intizllize with git repo and now it is working fine and good
thanks for help dudes
lmaoo
Komondor
:thinq: