Exceptions
Exceptions 3
Doctrine\DBAL\Exception\ ConnectionException
Show exception properties
Doctrine\DBAL\Exception\ConnectionException {#839 -query: null }
1227,1370,1429,2002,2005,2054 => new ConnectionException($exception, $query),2006,4031 => new ConnectionLost($exception, $query),1048,1121,1138,
in
vendor/doctrine/dbal/src/Connection.php
->
convert
(line 1460)
private function handleDriverException(Driver\Exception $driverException,?Query $query,): DriverException {$this->exceptionConverter ??= $this->driver->getExceptionConverter();$exception = $this->exceptionConverter->convert($driverException, $query);if ($exception instanceof ConnectionLost) {$this->close();}
in
vendor/doctrine/dbal/src/Connection.php
->
handleDriverException
(line 1402)
}/** @internal */final public function convertException(Driver\Exception $e): DriverException{return $this->handleDriverException($e, null);}/*** @param list<mixed>|array<string, mixed> $params* @phpstan-param WrapperParameterTypeArray $types
in
vendor/doctrine/dbal/src/Connection.php
->
convertException
(line 224)
}try {$connection = $this->_conn = $this->driver->connect($this->params);} catch (Driver\Exception $e) {throw $this->convertException($e);}if ($this->autoCommit === false) {$this->beginTransaction();}
in
vendor/doctrine/dbal/src/Connection.php
->
connect
(line 792)
): Result {if ($qcp !== null) {return $this->executeCacheQuery($sql, $params, $types, $qcp);}$connection = $this->connect();try {if (count($params) > 0) {[$sql, $params, $types] = $this->expandArrayParameters($sql, $params, $types);
in
vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php
->
executeQuery
(line 963)
): array {$this->switchPersisterContext($offset, $limit);$sql = $this->getSelectSQL($criteria, null, null, $limit, $offset, $orderBy);[$params, $types] = $this->expandParameters($criteria);$stmt = $this->conn->executeQuery($sql, $params, $types);$hydrator = $this->em->newHydrator($this->currentPersisterContext->selectJoinSql ? Query::HYDRATE_OBJECT : Query::HYDRATE_SIMPLEOBJECT);return $hydrator->hydrateAll($stmt, $this->currentPersisterContext->rsm, [UnitOfWork::HINT_DEFEREAGERLOAD => true]);}
in
vendor/doctrine/orm/src/EntityRepository.php
->
loadAll
(line 110)
*/public function findBy(array $criteria, array|null $orderBy = null, int|null $limit = null, int|null $offset = null): array{$persister = $this->em->getUnitOfWork()->getEntityPersister($this->entityName);return $persister->loadAll($criteria, $orderBy, $limit, $offset);}/*** Finds a single entity by a set of criteria.*
in
vendor/doctrine/doctrine-bundle/src/Repository/ServiceEntityRepositoryProxy.php
->
findBy
(line 73)
* @psalm-suppress InvalidReturnType This proxy is used only in combination with newer parent class*/public function findBy(array $criteria, array|null $orderBy = null, int|null $limit = null, int|null $offset = null): array{return ($this->repository ??= $this->resolveRepository())->findBy($criteria, $orderBy, $limit, $offset);}/** {@inheritDoc} */public function findOneBy(array $criteria, array|null $orderBy = null): object|null{
in
vendor/doctrine/orm/src/EntityRepository.php
->
findBy
(line 96)
** @phpstan-return list<T> The entities.*/public function findAll(): array{return $this->findBy([]);}/*** Finds entities by a set of criteria.*
class ProductController extends AbstractController{#[Route('/products', name: 'products', methods: ['GET'])]public function index(ProductRepository $productRepository): JsonResponse{$products = $productRepository->findAll();$data = [];foreach ($products as $product) {$data[] = ['id' => $product->getId(),
in
vendor/symfony/http-kernel/HttpKernel.php
->
index
(line 183)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response, $event);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 76)
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);$response = null;try {return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {if ($e instanceof \Error && !$this->handleAllThrowables) {throw $e;}
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 193)
if (!$this->handlingHttpCache) {$this->resetServices = true;}try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
handle
(line 35)
) {}public function run(): int{$response = $this->kernel->handle($this->request);if (Kernel::VERSION_ID >= 60400) {$response->send(false);if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in
vendor/autoload_runtime.php
->
run
(line 32)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
require_once('/home/testaimp/web/saveurs/www/vendor/autoload_runtime.php')
in
public/index.php
(line 5)
<?phpuse App\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return function (array $context) {return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);};
Doctrine\DBAL\Driver\PDO\ Exception
in
vendor/doctrine/dbal/src/Driver/PDO/Exception.php
(line 24)
} else {$code = $exception->getCode();$sqlState = null;}return new self($exception->getMessage(), $sqlState, $code, $exception);}}
in
vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php
::
new
(line 52)
$params['user'] ?? '',$params['password'] ?? '',$driverOptions,);} catch (PDOException $exception) {throw Exception::new($exception);}return new Connection($pdo);}
in
vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php
->
connect
(line 27)
*/public function connect(#[SensitiveParameter]array $params,): DriverConnection {return $this->wrappedDriver->connect($params);}public function getDatabasePlatform(ServerVersionProvider $versionProvider): AbstractPlatform{return $this->wrappedDriver->getDatabasePlatform($versionProvider);
in
vendor/doctrine/dbal/src/Logging/Driver.php
->
connect
(line 30)
array $params,): Connection {$this->logger->info('Connecting with parameters {params}', ['params' => $this->maskPassword($params)]);return new Connection(parent::connect($params),$this->logger,);}/**
in
vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php
->
connect
(line 27)
*/public function connect(#[SensitiveParameter]array $params,): DriverConnection {return $this->wrappedDriver->connect($params);}public function getDatabasePlatform(ServerVersionProvider $versionProvider): AbstractPlatform{return $this->wrappedDriver->getDatabasePlatform($versionProvider);
in
vendor/symfony/doctrine-bridge/Middleware/Debug/Driver.php
->
connect
(line 37)
parent::__construct($driver);}public function connect(array $params): ConnectionInterface{$connection = parent::connect($params);if ('void' !== (string) (new \ReflectionMethod(ConnectionInterface::class, 'commit'))->getReturnType()) {return new DBAL3\Connection($connection,$this->debugDataHolder,
in
vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php
->
connect
(line 27)
*/public function connect(#[SensitiveParameter]array $params,): DriverConnection {return $this->wrappedDriver->connect($params);}public function getDatabasePlatform(ServerVersionProvider $versionProvider): AbstractPlatform{return $this->wrappedDriver->getDatabasePlatform($versionProvider);
in
vendor/symfony/doctrine-bridge/Middleware/IdleConnection/Driver.php
->
connect
(line 35)
}public function connect(array $params): ConnectionInterface{$timestamp = time();$connection = parent::connect($params);$this->connectionExpiries[$this->connectionName] = $timestamp + $this->ttl;return $connection;}}
in
vendor/doctrine/dbal/src/Connection.php
->
connect
(line 222)
if ($this->_conn !== null) {return $this->_conn;}try {$connection = $this->_conn = $this->driver->connect($this->params);} catch (Driver\Exception $e) {throw $this->convertException($e);}if ($this->autoCommit === false) {
in
vendor/doctrine/dbal/src/Connection.php
->
connect
(line 792)
): Result {if ($qcp !== null) {return $this->executeCacheQuery($sql, $params, $types, $qcp);}$connection = $this->connect();try {if (count($params) > 0) {[$sql, $params, $types] = $this->expandArrayParameters($sql, $params, $types);
in
vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php
->
executeQuery
(line 963)
): array {$this->switchPersisterContext($offset, $limit);$sql = $this->getSelectSQL($criteria, null, null, $limit, $offset, $orderBy);[$params, $types] = $this->expandParameters($criteria);$stmt = $this->conn->executeQuery($sql, $params, $types);$hydrator = $this->em->newHydrator($this->currentPersisterContext->selectJoinSql ? Query::HYDRATE_OBJECT : Query::HYDRATE_SIMPLEOBJECT);return $hydrator->hydrateAll($stmt, $this->currentPersisterContext->rsm, [UnitOfWork::HINT_DEFEREAGERLOAD => true]);}
in
vendor/doctrine/orm/src/EntityRepository.php
->
loadAll
(line 110)
*/public function findBy(array $criteria, array|null $orderBy = null, int|null $limit = null, int|null $offset = null): array{$persister = $this->em->getUnitOfWork()->getEntityPersister($this->entityName);return $persister->loadAll($criteria, $orderBy, $limit, $offset);}/*** Finds a single entity by a set of criteria.*
in
vendor/doctrine/doctrine-bundle/src/Repository/ServiceEntityRepositoryProxy.php
->
findBy
(line 73)
* @psalm-suppress InvalidReturnType This proxy is used only in combination with newer parent class*/public function findBy(array $criteria, array|null $orderBy = null, int|null $limit = null, int|null $offset = null): array{return ($this->repository ??= $this->resolveRepository())->findBy($criteria, $orderBy, $limit, $offset);}/** {@inheritDoc} */public function findOneBy(array $criteria, array|null $orderBy = null): object|null{
in
vendor/doctrine/orm/src/EntityRepository.php
->
findBy
(line 96)
** @phpstan-return list<T> The entities.*/public function findAll(): array{return $this->findBy([]);}/*** Finds entities by a set of criteria.*
class ProductController extends AbstractController{#[Route('/products', name: 'products', methods: ['GET'])]public function index(ProductRepository $productRepository): JsonResponse{$products = $productRepository->findAll();$data = [];foreach ($products as $product) {$data[] = ['id' => $product->getId(),
in
vendor/symfony/http-kernel/HttpKernel.php
->
index
(line 183)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response, $event);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 76)
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);$response = null;try {return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {if ($e instanceof \Error && !$this->handleAllThrowables) {throw $e;}
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 193)
if (!$this->handlingHttpCache) {$this->resetServices = true;}try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
handle
(line 35)
) {}public function run(): int{$response = $this->kernel->handle($this->request);if (Kernel::VERSION_ID >= 60400) {$response->send(false);if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in
vendor/autoload_runtime.php
->
run
(line 32)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
require_once('/home/testaimp/web/saveurs/www/vendor/autoload_runtime.php')
in
public/index.php
(line 5)
<?phpuse App\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return function (array $context) {return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);};
PDOException
in
vendor/doctrine/dbal/src/Driver/PDO/PDOConnect.php
(line 25)
#[SensitiveParameter]string $password,array $options,): PDO {if (PHP_VERSION_ID < 80400) {return new PDO($dsn, $username, $password, $options);}return PDO::connect($dsn, $username, $password, $options);}}
in
vendor/doctrine/dbal/src/Driver/PDO/PDOConnect.php
->
__construct
(line 25)
#[SensitiveParameter]string $password,array $options,): PDO {if (PHP_VERSION_ID < 80400) {return new PDO($dsn, $username, $password, $options);}return PDO::connect($dsn, $username, $password, $options);}}
in
vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php
->
doConnect
(line 45)
$safeParams = $params;unset($safeParams['password']);try {$pdo = $this->doConnect($this->constructPdoDsn($safeParams),$params['user'] ?? '',$params['password'] ?? '',$driverOptions,);
in
vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php
->
connect
(line 27)
*/public function connect(#[SensitiveParameter]array $params,): DriverConnection {return $this->wrappedDriver->connect($params);}public function getDatabasePlatform(ServerVersionProvider $versionProvider): AbstractPlatform{return $this->wrappedDriver->getDatabasePlatform($versionProvider);
in
vendor/doctrine/dbal/src/Logging/Driver.php
->
connect
(line 30)
array $params,): Connection {$this->logger->info('Connecting with parameters {params}', ['params' => $this->maskPassword($params)]);return new Connection(parent::connect($params),$this->logger,);}/**
in
vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php
->
connect
(line 27)
*/public function connect(#[SensitiveParameter]array $params,): DriverConnection {return $this->wrappedDriver->connect($params);}public function getDatabasePlatform(ServerVersionProvider $versionProvider): AbstractPlatform{return $this->wrappedDriver->getDatabasePlatform($versionProvider);
in
vendor/symfony/doctrine-bridge/Middleware/Debug/Driver.php
->
connect
(line 37)
parent::__construct($driver);}public function connect(array $params): ConnectionInterface{$connection = parent::connect($params);if ('void' !== (string) (new \ReflectionMethod(ConnectionInterface::class, 'commit'))->getReturnType()) {return new DBAL3\Connection($connection,$this->debugDataHolder,
in
vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php
->
connect
(line 27)
*/public function connect(#[SensitiveParameter]array $params,): DriverConnection {return $this->wrappedDriver->connect($params);}public function getDatabasePlatform(ServerVersionProvider $versionProvider): AbstractPlatform{return $this->wrappedDriver->getDatabasePlatform($versionProvider);
in
vendor/symfony/doctrine-bridge/Middleware/IdleConnection/Driver.php
->
connect
(line 35)
}public function connect(array $params): ConnectionInterface{$timestamp = time();$connection = parent::connect($params);$this->connectionExpiries[$this->connectionName] = $timestamp + $this->ttl;return $connection;}}
in
vendor/doctrine/dbal/src/Connection.php
->
connect
(line 222)
if ($this->_conn !== null) {return $this->_conn;}try {$connection = $this->_conn = $this->driver->connect($this->params);} catch (Driver\Exception $e) {throw $this->convertException($e);}if ($this->autoCommit === false) {
in
vendor/doctrine/dbal/src/Connection.php
->
connect
(line 792)
): Result {if ($qcp !== null) {return $this->executeCacheQuery($sql, $params, $types, $qcp);}$connection = $this->connect();try {if (count($params) > 0) {[$sql, $params, $types] = $this->expandArrayParameters($sql, $params, $types);
in
vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php
->
executeQuery
(line 963)
): array {$this->switchPersisterContext($offset, $limit);$sql = $this->getSelectSQL($criteria, null, null, $limit, $offset, $orderBy);[$params, $types] = $this->expandParameters($criteria);$stmt = $this->conn->executeQuery($sql, $params, $types);$hydrator = $this->em->newHydrator($this->currentPersisterContext->selectJoinSql ? Query::HYDRATE_OBJECT : Query::HYDRATE_SIMPLEOBJECT);return $hydrator->hydrateAll($stmt, $this->currentPersisterContext->rsm, [UnitOfWork::HINT_DEFEREAGERLOAD => true]);}
in
vendor/doctrine/orm/src/EntityRepository.php
->
loadAll
(line 110)
*/public function findBy(array $criteria, array|null $orderBy = null, int|null $limit = null, int|null $offset = null): array{$persister = $this->em->getUnitOfWork()->getEntityPersister($this->entityName);return $persister->loadAll($criteria, $orderBy, $limit, $offset);}/*** Finds a single entity by a set of criteria.*
in
vendor/doctrine/doctrine-bundle/src/Repository/ServiceEntityRepositoryProxy.php
->
findBy
(line 73)
* @psalm-suppress InvalidReturnType This proxy is used only in combination with newer parent class*/public function findBy(array $criteria, array|null $orderBy = null, int|null $limit = null, int|null $offset = null): array{return ($this->repository ??= $this->resolveRepository())->findBy($criteria, $orderBy, $limit, $offset);}/** {@inheritDoc} */public function findOneBy(array $criteria, array|null $orderBy = null): object|null{
in
vendor/doctrine/orm/src/EntityRepository.php
->
findBy
(line 96)
** @phpstan-return list<T> The entities.*/public function findAll(): array{return $this->findBy([]);}/*** Finds entities by a set of criteria.*
class ProductController extends AbstractController{#[Route('/products', name: 'products', methods: ['GET'])]public function index(ProductRepository $productRepository): JsonResponse{$products = $productRepository->findAll();$data = [];foreach ($products as $product) {$data[] = ['id' => $product->getId(),
in
vendor/symfony/http-kernel/HttpKernel.php
->
index
(line 183)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response, $event);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 76)
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);$response = null;try {return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {if ($e instanceof \Error && !$this->handleAllThrowables) {throw $e;}
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 193)
if (!$this->handlingHttpCache) {$this->resetServices = true;}try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
handle
(line 35)
) {}public function run(): int{$response = $this->kernel->handle($this->request);if (Kernel::VERSION_ID >= 60400) {$response->send(false);if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in
vendor/autoload_runtime.php
->
run
(line 32)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
require_once('/home/testaimp/web/saveurs/www/vendor/autoload_runtime.php')
in
public/index.php
(line 5)
<?phpuse App\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return function (array $context) {return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);};
Logs
| Level | Channel | Message |
|---|---|---|
| INFO 15:46:22 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "latest"
},
"request_uri": "https://saveurs.testaimpros.com/_profiler/latest?ip=88.173.59.86&type=request",
"method": "GET"
}
|
Stack Traces 3
|
[3/3]
ConnectionException
|
|---|
Doctrine\DBAL\Exception\ConnectionException:
An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused
at vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:91
at Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter->convert()
(vendor/doctrine/dbal/src/Connection.php:1460)
at Doctrine\DBAL\Connection->handleDriverException()
(vendor/doctrine/dbal/src/Connection.php:1402)
at Doctrine\DBAL\Connection->convertException()
(vendor/doctrine/dbal/src/Connection.php:224)
at Doctrine\DBAL\Connection->connect()
(vendor/doctrine/dbal/src/Connection.php:792)
at Doctrine\DBAL\Connection->executeQuery()
(vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:963)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadAll()
(vendor/doctrine/orm/src/EntityRepository.php:110)
at Doctrine\ORM\EntityRepository->findBy()
(vendor/doctrine/doctrine-bundle/src/Repository/ServiceEntityRepositoryProxy.php:73)
at Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepositoryProxy->findBy()
(vendor/doctrine/orm/src/EntityRepository.php:96)
at Doctrine\ORM\EntityRepository->findAll()
(src/Controller/Api/ProductController.php:17)
at App\Controller\Api\ProductController->index()
(vendor/symfony/http-kernel/HttpKernel.php:183)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:76)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:193)
at Symfony\Component\HttpKernel\Kernel->handle()
(vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(vendor/autoload_runtime.php:32)
at require_once('/home/testaimp/web/saveurs/www/vendor/autoload_runtime.php')
(public/index.php:5)
|
|
[2/3]
Exception
|
|---|
Doctrine\DBAL\Driver\PDO\Exception:
SQLSTATE[HY000] [2002] Connection refused
at vendor/doctrine/dbal/src/Driver/PDO/Exception.php:24
at Doctrine\DBAL\Driver\PDO\Exception::new()
(vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:52)
at Doctrine\DBAL\Driver\PDO\MySQL\Driver->connect()
(vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:27)
at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect()
(vendor/doctrine/dbal/src/Logging/Driver.php:30)
at Doctrine\DBAL\Logging\Driver->connect()
(vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:27)
at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect()
(vendor/symfony/doctrine-bridge/Middleware/Debug/Driver.php:37)
at Symfony\Bridge\Doctrine\Middleware\Debug\Driver->connect()
(vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:27)
at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect()
(vendor/symfony/doctrine-bridge/Middleware/IdleConnection/Driver.php:35)
at Symfony\Bridge\Doctrine\Middleware\IdleConnection\Driver->connect()
(vendor/doctrine/dbal/src/Connection.php:222)
at Doctrine\DBAL\Connection->connect()
(vendor/doctrine/dbal/src/Connection.php:792)
at Doctrine\DBAL\Connection->executeQuery()
(vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:963)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadAll()
(vendor/doctrine/orm/src/EntityRepository.php:110)
at Doctrine\ORM\EntityRepository->findBy()
(vendor/doctrine/doctrine-bundle/src/Repository/ServiceEntityRepositoryProxy.php:73)
at Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepositoryProxy->findBy()
(vendor/doctrine/orm/src/EntityRepository.php:96)
at Doctrine\ORM\EntityRepository->findAll()
(src/Controller/Api/ProductController.php:17)
at App\Controller\Api\ProductController->index()
(vendor/symfony/http-kernel/HttpKernel.php:183)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:76)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:193)
at Symfony\Component\HttpKernel\Kernel->handle()
(vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(vendor/autoload_runtime.php:32)
at require_once('/home/testaimp/web/saveurs/www/vendor/autoload_runtime.php')
(public/index.php:5)
|
|
[1/3]
PDOException
|
|---|
PDOException:
SQLSTATE[HY000] [2002] Connection refused
at vendor/doctrine/dbal/src/Driver/PDO/PDOConnect.php:25
at PDO->__construct()
(vendor/doctrine/dbal/src/Driver/PDO/PDOConnect.php:25)
at Doctrine\DBAL\Driver\PDO\MySQL\Driver->doConnect()
(vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:45)
at Doctrine\DBAL\Driver\PDO\MySQL\Driver->connect()
(vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:27)
at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect()
(vendor/doctrine/dbal/src/Logging/Driver.php:30)
at Doctrine\DBAL\Logging\Driver->connect()
(vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:27)
at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect()
(vendor/symfony/doctrine-bridge/Middleware/Debug/Driver.php:37)
at Symfony\Bridge\Doctrine\Middleware\Debug\Driver->connect()
(vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:27)
at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect()
(vendor/symfony/doctrine-bridge/Middleware/IdleConnection/Driver.php:35)
at Symfony\Bridge\Doctrine\Middleware\IdleConnection\Driver->connect()
(vendor/doctrine/dbal/src/Connection.php:222)
at Doctrine\DBAL\Connection->connect()
(vendor/doctrine/dbal/src/Connection.php:792)
at Doctrine\DBAL\Connection->executeQuery()
(vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:963)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadAll()
(vendor/doctrine/orm/src/EntityRepository.php:110)
at Doctrine\ORM\EntityRepository->findBy()
(vendor/doctrine/doctrine-bundle/src/Repository/ServiceEntityRepositoryProxy.php:73)
at Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepositoryProxy->findBy()
(vendor/doctrine/orm/src/EntityRepository.php:96)
at Doctrine\ORM\EntityRepository->findAll()
(src/Controller/Api/ProductController.php:17)
at App\Controller\Api\ProductController->index()
(vendor/symfony/http-kernel/HttpKernel.php:183)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:76)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:193)
at Symfony\Component\HttpKernel\Kernel->handle()
(vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(vendor/autoload_runtime.php:32)
at require_once('/home/testaimp/web/saveurs/www/vendor/autoload_runtime.php')
(public/index.php:5)
|