Fatal error: Uncaught PDOException: SQLSTATE[08006] [7] connection to server at "db-pgsql-nyc3-45397-cab-do-user-28303724-0.d.db.ondigitalocean.com" (134.122.12.180), port 25060 failed: FATAL: sorry, too many clients already in /var/www/html/lib/Database.php:56
Stack trace:
#0 /var/www/html/lib/Database.php(56): PDO->__construct('pgsql:host=db-p...', 'doadmin', Object(SensitiveParameterValue), Array)
#1 /var/www/html/lib/repositories/DirectoryRepository.php(17): App\Lib\Database::pdo()
#2 /var/www/html/pages/area.php(11): App\Lib\Repositories\DirectoryRepository->__construct()
#3 /var/www/html/lib/helpers.php(229): require('/var/www/html/p...')
#4 /var/www/html/lib/Router.php(93): render_page('area', Array)
#5 /var/www/html/public/index.php(141): App\Lib\Router->dispatch('GET', '/ar/airport-tax...')
#6 {main}
Next RuntimeException: Database connection failed: SQLSTATE[08006] [7] connection to server at "db-pgsql-nyc3-45397-cab-do-user-28303724-0.d.db.ondigitalocean.com" (134.122.12.180), port 25060 failed: FATAL: sorry, too many clients already in /var/www/html/lib/Database.php:63
Stack trace:
#0 /var/www/html/lib/repositories/DirectoryRepository.php(17): App\Lib\Database::pdo()
#1 /var/www/html/pages/area.php(11): App\Lib\Repositories\DirectoryRepository->__construct()
#2 /var/www/html/lib/helpers.php(229): require('/var/www/html/p...')
#3 /var/www/html/lib/Router.php(93): render_page('area', Array)
#4 /var/www/html/public/index.php(141): App\Lib\Router->dispatch('GET', '/ar/airport-tax...')
#5 {main}
thrown in /var/www/html/lib/Database.php on line 63