You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
handler.js uses client.isConnected(); this results in runtime error
I upgraded to current "mongodb" npm 6.8.0
According to research client.connect() is a no-op if already connected, so I just removed the client.isConnected() condition.
Also the MongoDB Atlas URL seems to be wrong today - at least it doesn't match mine. I just replaced it.
Last but not least, serverless.yml sets nodejs14x runtime, which is no longer supported.
I'm going to provide a PR with these minor fixes.
The text was updated successfully, but these errors were encountered:
docwarems
pushed a commit
to docwarems/serverless-examples
that referenced
this issue
Aug 7, 2024
handler.js uses client.isConnected(); this results in runtime error
I upgraded to current "mongodb" npm 6.8.0
According to research client.connect() is a no-op if already connected, so I just removed the client.isConnected() condition.
Also the MongoDB Atlas URL seems to be wrong today - at least it doesn't match mine. I just replaced it.
Last but not least, serverless.yml sets nodejs14x runtime, which is no longer supported.
I'm going to provide a PR with these minor fixes.
The text was updated successfully, but these errors were encountered: