Warning: include(../../htpasswd/mongodb.inc): Failed to open stream: No such file or directory in /home/course/u46/public_html/submissions/submission04/scripts/get_quote_mongo.php on line 3
Warning: include(): Failed opening '../../htpasswd/mongodb.inc' for inclusion (include_path='.:/usr/share/php') in /home/course/u46/public_html/submissions/submission04/scripts/get_quote_mongo.php on line 3
Warning: Undefined variable $u46 in /home/course/u46/public_html/submissions/submission04/scripts/get_quote_mongo.php on line 29
Warning: Undefined variable $exerciseSUGGESTED77 in /home/course/u46/public_html/submissions/submission04/scripts/get_quote_mongo.php on line 29
Fatal error: Uncaught MongoDB\Driver\Exception\InvalidArgumentException: Failed to parse MongoDB URI: 'mongodb://:@localhost/u46'. Default authentication mechanism requires username. in /var/shared/vendor/mongodb/mongodb/src/Client.php:107
Stack trace:
#0 /var/shared/vendor/mongodb/mongodb/src/Client.php(107): MongoDB\Driver\Manager->__construct()
#1 /home/course/u46/public_html/submissions/submission04/scripts/get_quote_mongo.php(29): MongoDB\Client->__construct()
#2 {main}
thrown in /var/shared/vendor/mongodb/mongodb/src/Client.php on line 107