[COMPASS-4009] Use node driver's error reason to improve connection error messages Created: 09/Dec/19  Updated: 03/Oct/23  Resolved: 26/Aug/21

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

Type: Task Priority: Major - P3
Reporter: Lucas Hrabovsky (Inactive) Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: COMPASS-3568
Documentation Changes: Not Needed

 Description   

Discussed with alena.khineika in a recent PR for COMPASS-3991:

Since driver retries to connect until it fails by timeout the type of the error will be always the timeout error. To provide extra information driver returns a new error property called reason. For example, in case of failures, the error message can be MongoTimeoutError: Server selection timed out after 1000 ms and error reason Error: connect ECONNREFUSED 127.0.0.1:29384.

See Slack thread on pain that we no longer translate error messages from the driver that this small fix would help with.
https://mongodb.slack.com/archives/C0U7K0MC3/p1575908041335500

Related:



 Comments   
Comment by Maurizio Casimirri [ 26/Aug/21 ]

Replaced by https://jira.mongodb.org/browse/COMPASS-4948

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