Frequent 504 Serverless Function Timeout on page route '/'
Unanswered
Valentine ant posted this in #help-forum
Valentine antOP
Hello,
We have a simple web app built on next app router with 2 pages '/': home/chat page, and '/sign-in': for magic link login. Our customers are experiencing Serverless Function Timeout when trying to load or refresh a page. I've checked the npm bundle sizes and they don't seem too large, and when we first noticed the timeout, we thought upgrading to pro may alleviate the error, but it seems there's something fundamentally wrong about our app implementation to timeout at 15s.
On each page load we call a function server side to get session, which calls an api endpoint to our google cloud deployed Python Fastapi backend to fetch user info. Any other interaction or heavy usage requires some interaction beyond refreshing the page.
We have a simple web app built on next app router with 2 pages '/': home/chat page, and '/sign-in': for magic link login. Our customers are experiencing Serverless Function Timeout when trying to load or refresh a page. I've checked the npm bundle sizes and they don't seem too large, and when we first noticed the timeout, we thought upgrading to pro may alleviate the error, but it seems there's something fundamentally wrong about our app implementation to timeout at 15s.
On each page load we call a function server side to get session, which calls an api endpoint to our google cloud deployed Python Fastapi backend to fetch user info. Any other interaction or heavy usage requires some interaction beyond refreshing the page.