Skip to content

Prevent serverless function timeout #1373

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
frontendphil opened this issue Apr 15, 2025 · 0 comments
Open

Prevent serverless function timeout #1373

frontendphil opened this issue Apr 15, 2025 · 0 comments

Comments

@frontendphil
Copy link
Member

We're calling out to a bunch of different services. When these services error, we can wrap code in try...catch and handle service outages. However, when these services take a very long time to respond, we might exceed the timeout for serverless functions, and our users are left with a very unpleasant Vercel error page.

We could prevent this by racing requests to other services with a promise that resolves before the serverless timeout is reached and then treat these timeouts as "regular" application errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant