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.
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.