The upgrade of node-mongodb version caused mongodb.open to report an error, which returned a 500th error.

Last year, the title owner used node- express-mongodb to develop a simple internal website of the company. Yesterday, he upgraded the npm package, which led to mongodb.open reporting an error directly here, returning a 500error, and without any error prompt. Later, he repeatedly looked for the problem and finally located the problem on the node-mongodb version. Before the upgrade, the node-mongodb version was 1.4.1, and after the upgrade, it was 3.percent. Finally, the version was downgraded, and sure enough, the 500 problem was solved.
I would like to ask you if you have encountered the same problem and how to solve this problem in addition to demotion. Thank you in advance!

Aug.18,2021

learn about version number naming conventions. Generally speaking, large version number (first) upgrades are not backward compatible. You skipped two versions here, so.
doesn't see the specific code or error message, and doesn't know what the problem is. It is recommended that you check the new API document yourself.

Menu