[COMPASS-3462] more detailed connection error messages Created: 13/Feb/19  Updated: 29/Oct/23  Resolved: 13/Feb/19

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Miguel Angel Nieto Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related

 Description   

Hello,

When Compass cannot connect to MongoDB it shows a very generic error that doesn't really tell what is the actual problem. This makes troubleshooting much more difficult.

For example, when using server validation with an invalid certificate I get in Compass:

"Could not connect to MongoDB on the provided host an port"

When I try to connect using MongoDB Shell I get:

"connection attempt failed: SSLHandshakeFailed: The server certificate does not match the host name. Hostname: xxx.xx does not match SAN(s): xxxx.xxx xxxx.xxx..."

Would be possible to get more descriptive error messages?

Thanks.


Generated at Wed Feb 07 22:33:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.