-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.1.2
-
Component/s: None
-
None
php -n -c. -r '$m = new MongoDB\Driver\Manager("mongodb://something.wrong:27020"); $m->selectServer(new MongoDB\Driver\ReadPreference(MongoDB\Driver\ReadPreference::RP_PRIMARY));'
Warning: MongoDB\Driver\Manager::selectServer(): php_network_getaddresses: getaddrinfo failed: Name or service not known in Command line code on line 1 Fatal error: Uncaught exception 'MongoDB\Driver\Exception\RuntimeException' with message 'No suitable servers found (`serverselectiontryonce` set): [Failed connecting to 'something.wrong:27020': php_network_getaddresses: getaddrinfo failed: Name or service not known]' in Command line code:1 Stack trace: #0 Command line code(1): MongoDB\Driver\Manager->selectServer(Object(MongoDB\Driver\ReadPreference)) #1 {main} thrown in Command line code on line 1
- is depended on by
-
PHPC-581 Use ConnectionTimeoutException for server selection failures
- Closed
-
PHPC-582 Manager::selectServer() should select exception class based on bson_error_t
- Closed
- is related to
-
PHPC-543 MongoDB\BSON\UTCDateTime on 32 bit platforms parse argument wrong
- Closed
- related to
-
PHPC-580 Stream errors should use more specific exceptions
- Closed