Hi @Luan_Melo,
Welcome to the MongoDB Community ![]()
Looking at the error message, it seems like the connection srv string is not getting parsed correctly. Could you make sure that you are passing the correct one and in a proper format in the code?
Can you directly hardcode it in your code and see if it resolves your issue or not? Alternatively, also check if the connection srv string works fine in your MongoDB shell and if it successfully connects you to your cluster or not.
Regards,
Kushagra