-
Notifications
You must be signed in to change notification settings - Fork 86
getServerSideProps functions times out when connecting to MongoDB #191
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
Ah, after a bit of digging it was fixed by this - netlify/next-on-netlify#66 (comment)
Will be interested to hear the outcome of this - #190. I guess this will also mean any non-predefined Out of interest is there a way to disable this for all functions created by the plugin? Possibly with some sort of patch? |
@Jonzy3000 thanks so much for opening this and reporting back with what you discovered yourself! i'll be exploring internally any implications of finn's suggestion in #190. in the meantime, you absolutely could use patch-package to patch the plugin by adding the |
this should be resolved now per v3.4.0! will close but please let us know if you continue to have function timeout issues! |
Describe the bug
Hi, I'm trying to port over a project from vercel, but having issues with functions timing out when trying to connect to mongo. I have a minimal github repository that reproduces this issue if that helps.
To Reproduce
Steps to reproduce the behavior:
your-url/mongo-check
This produces
{"errorMessage":"2021-04-03T16:41:18.229Z aa9a8258-e195-4e9c-89c9-b4026e000da1 Task timed out after 10.00 seconds"}
With logs that look like
From the logs, it seems that the connection to mongo is successful (around 1 second) then just sits there doing nothing before it times out.
Expected behavior
A page with
You are connected to MongoDB
appearsPage is - https://mongo-nextjs.netlify.app/mongo-check
Versions
Possibly related - netlify/next-on-netlify#172
Thanks in advance, let me know if there is anything else I can provide :)
The text was updated successfully, but these errors were encountered: