-
Notifications
You must be signed in to change notification settings - Fork 73
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
Getting timeout errors a lot #494
Comments
Internal ticket number is OSS-724 |
you pass |
I know, if I set it 10 seconds it times out at 10. Which is the maximum amount of seconds a Netlify Function will run. But usually this call takes a fraction of a second. But maybe the problem lies in the local dev server run by Netlify, because on a live Netlify function this seems to happen less or not. So I might need to raise this issue with Netlify rather than here. |
Can you check the NodeJS runtime version? there is an issue with some 12.16.1 version (probably some other versions too) Personally, I have got the same when using NodeJS v12.16.1 on and of. |
I'm making calls to Fauna from a Netlify function, and I seem to be getting a lot of timeout errors that I can't get rid of. They occur to ~10% or more of my calls, but without a particular pattern that I see.
{"message":"Request aborted due to timeout","isTimeoutError":true} Response with status 500 in 5006 ms.
I've tried adding
context.callbackWaitsForEmptyEventLoop = false
and looked at https://docs.fauna.com/fauna/current/drivers/known_issues. I've tried changing the keepAlive setting to false to see if that changed anything, but I keep getting timeout errors.I'm running the latest version "faunadb": "^4.1.1" and using the latest version of Netlify CLI.
Am I doing something wrong? Or is this to be expected and should I find a way to retry in case of a timeout?
The text was updated successfully, but these errors were encountered: