Skip to content
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

Hitting timeout on Netlify #156

Open
waspeer opened this issue Apr 29, 2024 · 0 comments
Open

Hitting timeout on Netlify #156

waspeer opened this issue Apr 29, 2024 · 0 comments

Comments

@waspeer
Copy link

waspeer commented Apr 29, 2024

I have made a very simple site with Astro that fetches 6 small queries in parallel. Locally these queries take about 30-90ms per query, but when I deployed this to Netlify functions I was hitting the timeout of 10s. I was not able to find out the cause and I was not getting any errors. When I swapped out sanity:client for picosanity the issue was resolved and the queries took about 200-300ms per query. I don't have any more specific information and I don't know how reproducible this issue is, but it seems important to flag.

Here is the file that executes the queries: https://gist.github.com/waspeer/1b791514648cf18183cec82d51d271a9

Which versions of Sanity are you using?

@sanity/cli (global) 3.39.1 (up to date)
@sanity/astro 3.0.0 (up to date)
@sanity/code-input 4.1.4 (up to date)
@sanity/image-url 1.0.2 (up to date)
sanity 3.39.1 (up to date)

What operating system are you using?

MacOS 14.4.1

Which versions of Node.js / npm are you running?

PNPM 8.15.6
Node v20.11.1

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

No branches or pull requests

1 participant