MongoParseError: URI malformed, cannot be parsed - 2 api's, one works, other one not

Hi Everyone,

I have 2 api’s using the same method to connect to the same mongo db (same URI), the one is working while the other throws an error : MongoParseError: URI malformed, cannot be parsed.

Anyone for helping me on this ?

Plz, check attached screenshot.

Thank you.

Hi there, back with a solution in case it could help some of you.
Actually, it has to do with the node version I use for my app. I had to downgrade it from node 19.1.0 to node 18.10.0 and it did the trick.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.