Can incorrect username/password cause the 'panic error parsing uri scheme must be mongodb or mongodb+srv' error?

Question

Grade: Education Subject: Support
Can incorrect username/password cause the 'panic error parsing uri scheme must be mongodb or mongodb+srv' error?
Asked by:
112 Viewed 112 Answers

Answer (112)

Best Answer
(293)
No. Incorrect credentials won't directly trigger this specific parsing error. The 'panic error parsing uri scheme' relates to the *format* of the URI itself. However, incorrect credentials would lead to an authentication error *after* the URI is parsed correctly, after the connection attempt.