Fatal error: Uncaught MongoDB\Driver\Exception\AuthenticationException: Authentication failed. in /home/admin/web/demov1.datasmarty.net/public_html/vendor/mongodb/mongodb/src/Operation/InsertOne.php:126 Stack trace: #0 /home/admin/web/demov1.datasmarty.net/public_html/vendor/mongodb/mongodb/src/Operation/InsertOne.php(126): MongoDB\Driver\Server->executeBulkWrite() #1 /home/admin/web/demov1.datasmarty.net/public_html/vendor/mongodb/mongodb/src/Collection.php(877): MongoDB\Operation\InsertOne->execute() #2 /home/admin/web/demov1.datasmarty.net/public_html/src/Service/Mongo.php(576): MongoDB\Collection->insertOne() #3 /home/admin/web/demov1.datasmarty.net/public_html/src/Repo/LogRepo.php(25): App\Service\Mongo->insertOne() #4 /home/admin/web/demov1.datasmarty.net/public_html/src/Service/Log.php(22): App\Repo\LogRepo->addLog() #5 /home/admin/web/demov1.datasmarty.net/public_html/src/Service/Log.php(27): App\Service\Log->createLog() #6 /home/admin/web/demov1.datasmarty.net/public_html/src/Handler/ErrorHandler.php(63): App\Service\Log->toBackend() #7 /home/admin/web/demov1.datasmarty.net/public_html/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(92): App\Handler\ErrorHandler->__invoke() #8 /home/admin/web/demov1.datasmarty.net/public_html/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(79): Slim\Middleware\ErrorMiddleware->handleException() #9 /home/admin/web/demov1.datasmarty.net/public_html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): Slim\Middleware\ErrorMiddleware->process() #10 /home/admin/web/demov1.datasmarty.net/public_html/src/Middleware/CorsMiddleware.php(11): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() #11 /home/admin/web/demov1.datasmarty.net/public_html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(237): App\Middleware\CorsMiddleware->__invoke() #12 /home/admin/web/demov1.datasmarty.net/public_html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() #13 /home/admin/web/demov1.datasmarty.net/public_html/vendor/slim/slim/Slim/App.php(209): Slim\MiddlewareDispatcher->handle() #14 /home/admin/web/demov1.datasmarty.net/public_html/vendor/slim/slim/Slim/App.php(193): Slim\App->handle() #15 /home/admin/web/demov1.datasmarty.net/public_html/index.php(3): Slim\App->run() #16 {main} Next MongoDB\Driver\Exception\BulkWriteException: Bulk write failed due to previous MongoDB\Driver\Exception\AuthenticationException: Authentication failed. in /home/admin/web/demov1.datasmarty.net/public_html/vendor/mongodb/mongodb/src/Operation/InsertOne.php:126 Stack trace: #0 /home/admin/web/demov1.datasmarty.net/public_html/vendor/mongodb/mongodb/src/Operation/InsertOne.php(126): MongoDB\Driver\Server->executeBulkWrite() #1 /home/admin/web/demov1.datasmarty.net/public_html/vendor/mongodb/mongodb/src/Collection.php(877): MongoDB\Operation\InsertOne->execute() #2 /home/admin/web/demov1.datasmarty.net/public_html/src/Service/Mongo.php(576): MongoDB\Collection->insertOne() #3 /home/admin/web/demov1.datasmarty.net/public_html/src/Repo/LogRepo.php(25): App\Service\Mongo->insertOne() #4 /home/admin/web/demov1.datasmarty.net/public_html/src/Service/Log.php(22): App\Repo\LogRepo->addLog() #5 /home/admin/web/demov1.datasmarty.net/public_html/src/Service/Log.php(27): App\Service\Log->createLog() #6 /home/admin/web/demov1.datasmarty.net/public_html/src/Handler/ErrorHandler.php(63): App\Service\Log->toBackend() #7 /home/admin/web/demov1.datasmarty.net/public_html/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(92): App\Handler\ErrorHandler->__invoke() #8 /home/admin/web/demov1.datasmarty.net/public_html/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(79): Slim\Middleware\ErrorMiddleware->handleException() #9 /home/admin/web/demov1.datasmarty.net/public_html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): Slim\Middleware\ErrorMiddleware->process() #10 /home/admin/web/demov1.datasmarty.net/public_html/src/Middleware/CorsMiddleware.php(11): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() #11 /home/admin/web/demov1.datasmarty.net/public_html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(237): App\Middleware\CorsMiddleware->__invoke() #12 /home/admin/web/demov1.datasmarty.net/public_html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() #13 /home/admin/web/demov1.datasmarty.net/public_html/vendor/slim/slim/Slim/App.php(209): Slim\MiddlewareDispatcher->handle() #14 /home/admin/web/demov1.datasmarty.net/public_html/vendor/slim/slim/Slim/App.php(193): Slim\App->handle() #15 /home/admin/web/demov1.datasmarty.net/public_html/index.php(3): Slim\App->run() #16 {main} thrown in /home/admin/web/demov1.datasmarty.net/public_html/vendor/mongodb/mongodb/src/Operation/InsertOne.php on line 126