~
Fatal error: Uncaught MongoDB\Driver\Exception\AuthenticationException: Authentication failed. in /var/shared/vendor/mongodb/mongodb/src/Operation/InsertOne.php:134
Stack trace:
#0 /var/shared/vendor/mongodb/mongodb/src/Operation/InsertOne.php(134): MongoDB\Driver\Server->executeBulkWrite()
#1 /var/shared/vendor/mongodb/mongodb/src/Collection.php(931): MongoDB\Operation\InsertOne->execute()
#2 /home/course/u90/public_html/examples_php_mongo/mongo_write_command_line.php(16): MongoDB\Collection->insertOne()
#3 {main}
Next MongoDB\Driver\Exception\BulkWriteException: Bulk write failed due to previous MongoDB\Driver\Exception\AuthenticationException: Authentication failed. in /var/shared/vendor/mongodb/mongodb/src/Operation/InsertOne.php:134
Stack trace:
#0 /var/shared/vendor/mongodb/mongodb/src/Operation/InsertOne.php(134): MongoDB\Driver\Server->executeBulkWrite()
#1 /var/shared/vendor/mongodb/mongodb/src/Collection.php(931): MongoDB\Operation\InsertOne->execute()
#2 /home/course/u90/public_html/examples_php_mongo/mongo_write_command_line.php(16): MongoDB\Collection->insertOne()
#3 {main}
thrown in /var/shared/vendor/mongodb/mongodb/src/Operation/InsertOne.php on line 134