Page MenuHomeDevCentral

MongoDB - error message when the server is down
Open, NormalPublic

Description

Filed on Espace Win Bugzilla 2014-07-13 19:22:39 UTC.

When MongoDB server is down, a nice error page could be offered instead of let an exception be thrown.

( ! ) Fatal error: Uncaught exception 'MongoConnectionException' with message 'Failed to connect to: localhost:27017: Connection refused' in /usr/home/dereckson/dev/obsidian/repo/includes/collection/MongoDBCollection.php on line 106
( ! ) MongoConnectionException: Failed to connect to: localhost:27017: Connection refused in /usr/home/dereckson/dev/obsidian/repo/includes/collection/MongoDBCollection.php on line 106

Something more generic could be provided in Collection::load.

Event Timeline

dereckson triaged this task as Normal priority.Mar 19 2022, 22:41
dereckson created this task.