Skip to content

Conversation

basmasking
Copy link
Member

Fixes #366

Changes proposed in this pull request:

  • MongoClient.connect() returns an opened connection, so we don't need to listen for that and can set #connected afterwards.

@MaskingTechnology/comify

The error itself is confusing, because it says Not connected. But the connection setup itself failed, and this indicated that there was no connection at all.

The more generic DatabaseError is now thrown from the connect().
@basmasking basmasking linked an issue Jan 10, 2025 that may be closed by this pull request
Copy link

@petermasking petermasking merged commit b2579b0 into main Jan 10, 2025
6 checks passed
@petermasking petermasking deleted the 366-fix-health-status-for-database branch January 10, 2025 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix health status for database
2 participants