The remix-adapter
times out when deployed to netlify and connects to Mongodb
#262
Labels
type: bug
code to address defects in shipped code
remix-adapter
times out when deployed to netlify and connects to Mongodb
#262
Bug details
I am using the netlify remix adapter. When I am running my app locally the loaders run and return within a few milliseconds when I connect to mongodb.
When I deploy to netlify, every loader that is connecting to mongodb gives me the message "Task timed out after 10.2 seconds".
I put console logs in the request and it actually finishes within milliseconds, but it hangs out until it times out to return.
It looks like it was fixed for next-runtime here, I'm wondering if its the same issue with
callbackWaitsForEmptyEventLoop
being set totrue
To Reproduce
npx create-remix@latest --template netlify/remix-template
Expected behavior
The expectation is that the remix-adapter will work like it does in local development, that is, when a loader is being used, and it connects to mongodb, the request will not take the entire timeout duration of 10seconds when it only took a few milliseconds to actually execute
Screenshots
Desktop
Additional Context
https://answers.netlify.com/t/netlify-function-runs-into-timeout-being-idle-for-10-seconds-between-last-log-statement-and-sending-response/35607/8
The text was updated successfully, but these errors were encountered: