-
Notifications
You must be signed in to change notification settings - Fork 86
[Bug]: Slow TTFB on netlify ? Caching ? #1290
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
Comments
Hi @mkubdev |
Hi @ascorbic I forked a piece of our project, and build it on netlify, the issue is here. This is the netlify website: https://classy-naiad-a01562.netlify.app/api/annotations I hope this can help the issue. Don't hesitate to ask me any questions and i'll provide any informations i can to help. |
Thanks for the repro. Does that repo need any API keys or anything, or should I be able to fork it and deploy it myself? |
I deleted your comment now I have the creds, thanks. |
After many hours of testing, it seems the cause isn't prisma after all. It's Material UI! Removing the import |
HI @ascorbic ! I can confirm that removing Thank you for hours of testing, even better if it can help the community. Have a great day ! ✨ |
Summary
It's been 1 month since one of our demo-app wont run on Netlify due to :
{ errorMessage: "2022-04-01T08:38:00.251Z 446ef97a-e95b-433e-be99-6671e1ac7e17 Task timed out after 10.03 seconds" }
After multiple searches on the subject, there is still no solution neither on support nor on Github. But i know @ascorbic is really invested on this subject and thank you for this. 🙏
The bug is very strange, it looks like Netlify still struggle slow TTFB...
On Netlify, first request takes more than 10s to querry MongoDB Atlas. (It's a shared cluster Free tier)

On Vercel, first request takes 373ms to querry MongoDB Atlas.

Same codebase, same release.
Can someone please give us an explanation about why this is happening ?
Please see: #552 #1174
Netlify support: This, or This, or This
StackOverflow: This, or This, or This
Is this can be the explanation ?
Does anyone have a suggestion ?
I know Pro tier allow querry more than 10 secondes. But i would like to know why it's working like a charm on vercel, and not on netlify...
Steps to reproduce
Just take any dummy-sample others folks already share on the support forum on netlify nor github.
It's a private codebase, with a simple prisma querry on the api endpoints :
myapp.com/api/annotations
Ps: I will take time today to build a reproduction repository.
Like others : I haven't any logs on serveless netlify functions.
😶
A link to a reproduction repository
No response
Plugin version
4.3.0
More information about your build
netlify.toml
)What OS are you using?
Windows 10 Pro + WSL2
Your netlify.toml file
`netlify.toml`
Your public/_redirects file
`_redirects`
none
Your
next.config.js
file`next.config.js`
Builds logs (or link to your logs)
Build logs
Function logs
Function logs
.next JSON files
generated .next JSON files
The text was updated successfully, but these errors were encountered: