Exceptions
Exceptions 4
Doctrine\DBAL\Exception\ ConnectionException
case 1370:
case 1429:
case 2002:
case 2005:
case 2054:
return new ConnectionException($exception, $query);
case 2006:
return new ConnectionLost($exception, $query);
case 1048:
in
vendor/doctrine/dbal/src/Connection.php
->
convert
(line 1938)
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 1886)
}
/** @internal */
final public function convertException(Driver\Exception $e): DriverException
{
return $this->handleDriverException($e, null);
}
/**
* @param array<int, mixed>|array<string, mixed> $params
* @param array<int, int|string|Type|null>|array<string, int|string|Type|null> $types
in
vendor/doctrine/dbal/src/Connection.php
->
convertException
(line 379)
}
try {
$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 1654)
'https://github.com/doctrine/dbal/issues/4966',
'Connection::getWrappedConnection() is deprecated.'
. ' Use Connection::getNativeConnection() to access the native connection.',
);
$this->connect();
return $this->_conn;
}
/** @return resource|object */
in
vendor/doctrine/dbal/src/Connection.php
->
getWrappedConnection
(line 1081)
): Result {
if ($qcp !== null) {
return $this->executeCacheQuery($sql, $params, $types, $qcp);
}
$connection = $this->getWrappedConnection();
$logger = $this->_config->getSQLLogger();
if ($logger !== null) {
$logger->startQuery($sql, $params, $types);
}
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php
->
executeQuery
(line 33)
*
* @return Result
*/
public function execute(Connection $conn, array $params, array $types)
{
return $conn->executeQuery($this->sqlStatements, $params, $types, $this->queryCacheProfile);
}
}
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query.php
->
execute
(line 327)
$sqlParams,
$types,
$this->_em->getConnection()->getParams()
);
return $executor->execute($this->_em->getConnection(), $sqlParams, $types);
}
/**
* @param array<string,mixed> $sqlParams
* @param array<string,Type> $types
in
vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php
->
_doExecute
(line 1212)
$setCacheEntry = static function ($data) use ($cache, $result, $cacheItem, $realCacheKey): void {
$cache->save($cacheItem->set($result + [$realCacheKey => $data]));
};
}
$stmt = $this->_doExecute();
if (is_numeric($stmt)) {
$setCacheEntry($stmt);
return $stmt;
in
vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php
->
executeIgnoreQueryCache
(line 1166)
{
if ($this->cacheable && $this->isCacheEnabled()) {
return $this->executeUsingQueryCache($parameters, $hydrationMode);
}
return $this->executeIgnoreQueryCache($parameters, $hydrationMode);
}
/**
* Execute query ignoring second level cache.
*
in
vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php
->
execute
(line 901)
*
* @return mixed
*/
public function getResult($hydrationMode = self::HYDRATE_OBJECT)
{
return $this->execute(null, $hydrationMode);
}
/**
* Gets the array of results for the query.
*
}
public function getCurrentBonus(\DateTimeInterface $time): ?Bonus
{
$qb = $this->repo->getBonusBetweenDatesQueryBuilder($time, $time);
$result = $qb->getQuery()->getResult();
if (count($result)) {
return $result[0];
}
return null;
*
* @throws \Exception
*/
public function index(Request $request): JsonResponse
{
$bonus = $this->service->getCurrentBonus(new \DateTime());
if (!$bonus) {
return new JsonResponse([
'success' => false,
], Response::HTTP_NOT_FOUND);
in
vendor/symfony/http-kernel/HttpKernel.php
->
index
(line 163)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
Request::setTrustedHosts([$trustedHosts]);
}
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
Doctrine\DBAL\Driver\PDO\ Exception
in
vendor/doctrine/dbal/src/Driver/PDO/Exception.php
(line 28)
} 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 40)
$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 29)
*/
public function connect(
#[SensitiveParameter]
array $params
) {
return $this->wrappedDriver->connect($params);
}
/**
* {@inheritDoc}
*/
in
vendor/doctrine/dbal/src/Logging/Driver.php
->
connect
(line 34)
array $params
) {
$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 29)
*/
public function connect(
#[SensitiveParameter]
array $params
) {
return $this->wrappedDriver->connect($params);
}
/**
* {@inheritDoc}
*/
in
vendor/symfony/doctrine-bridge/Middleware/Debug/Driver.php
->
connect
(line 37)
}
public function connect(array $params): Connection
{
return new Connection(
parent::connect($params),
$this->debugDataHolder,
$this->stopwatch,
$this->connectionName,
);
}
in
vendor/doctrine/dbal/src/Connection.php
->
connect
(line 377)
if ($this->_conn !== null) {
return false;
}
try {
$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 1654)
'https://github.com/doctrine/dbal/issues/4966',
'Connection::getWrappedConnection() is deprecated.'
. ' Use Connection::getNativeConnection() to access the native connection.',
);
$this->connect();
return $this->_conn;
}
/** @return resource|object */
in
vendor/doctrine/dbal/src/Connection.php
->
getWrappedConnection
(line 1081)
): Result {
if ($qcp !== null) {
return $this->executeCacheQuery($sql, $params, $types, $qcp);
}
$connection = $this->getWrappedConnection();
$logger = $this->_config->getSQLLogger();
if ($logger !== null) {
$logger->startQuery($sql, $params, $types);
}
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php
->
executeQuery
(line 33)
*
* @return Result
*/
public function execute(Connection $conn, array $params, array $types)
{
return $conn->executeQuery($this->sqlStatements, $params, $types, $this->queryCacheProfile);
}
}
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query.php
->
execute
(line 327)
$sqlParams,
$types,
$this->_em->getConnection()->getParams()
);
return $executor->execute($this->_em->getConnection(), $sqlParams, $types);
}
/**
* @param array<string,mixed> $sqlParams
* @param array<string,Type> $types
in
vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php
->
_doExecute
(line 1212)
$setCacheEntry = static function ($data) use ($cache, $result, $cacheItem, $realCacheKey): void {
$cache->save($cacheItem->set($result + [$realCacheKey => $data]));
};
}
$stmt = $this->_doExecute();
if (is_numeric($stmt)) {
$setCacheEntry($stmt);
return $stmt;
in
vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php
->
executeIgnoreQueryCache
(line 1166)
{
if ($this->cacheable && $this->isCacheEnabled()) {
return $this->executeUsingQueryCache($parameters, $hydrationMode);
}
return $this->executeIgnoreQueryCache($parameters, $hydrationMode);
}
/**
* Execute query ignoring second level cache.
*
in
vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php
->
execute
(line 901)
*
* @return mixed
*/
public function getResult($hydrationMode = self::HYDRATE_OBJECT)
{
return $this->execute(null, $hydrationMode);
}
/**
* Gets the array of results for the query.
*
}
public function getCurrentBonus(\DateTimeInterface $time): ?Bonus
{
$qb = $this->repo->getBonusBetweenDatesQueryBuilder($time, $time);
$result = $qb->getQuery()->getResult();
if (count($result)) {
return $result[0];
}
return null;
*
* @throws \Exception
*/
public function index(Request $request): JsonResponse
{
$bonus = $this->service->getCurrentBonus(new \DateTime());
if (!$bonus) {
return new JsonResponse([
'success' => false,
], Response::HTTP_NOT_FOUND);
in
vendor/symfony/http-kernel/HttpKernel.php
->
index
(line 163)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
Request::setTrustedHosts([$trustedHosts]);
}
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
PDOException
in
vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php
(line 33)
$safeParams = $params;
unset($safeParams['password'], $safeParams['url']);
try {
$pdo = new PDO(
$this->constructPdoDsn($safeParams),
$params['user'] ?? '',
$params['password'] ?? '',
$driverOptions,
);
in
vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php
->
__construct
(line 33)
$safeParams = $params;
unset($safeParams['password'], $safeParams['url']);
try {
$pdo = new PDO(
$this->constructPdoDsn($safeParams),
$params['user'] ?? '',
$params['password'] ?? '',
$driverOptions,
);
in
vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php
->
connect
(line 29)
*/
public function connect(
#[SensitiveParameter]
array $params
) {
return $this->wrappedDriver->connect($params);
}
/**
* {@inheritDoc}
*/
in
vendor/doctrine/dbal/src/Logging/Driver.php
->
connect
(line 34)
array $params
) {
$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 29)
*/
public function connect(
#[SensitiveParameter]
array $params
) {
return $this->wrappedDriver->connect($params);
}
/**
* {@inheritDoc}
*/
in
vendor/symfony/doctrine-bridge/Middleware/Debug/Driver.php
->
connect
(line 37)
}
public function connect(array $params): Connection
{
return new Connection(
parent::connect($params),
$this->debugDataHolder,
$this->stopwatch,
$this->connectionName,
);
}
in
vendor/doctrine/dbal/src/Connection.php
->
connect
(line 377)
if ($this->_conn !== null) {
return false;
}
try {
$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 1654)
'https://github.com/doctrine/dbal/issues/4966',
'Connection::getWrappedConnection() is deprecated.'
. ' Use Connection::getNativeConnection() to access the native connection.',
);
$this->connect();
return $this->_conn;
}
/** @return resource|object */
in
vendor/doctrine/dbal/src/Connection.php
->
getWrappedConnection
(line 1081)
): Result {
if ($qcp !== null) {
return $this->executeCacheQuery($sql, $params, $types, $qcp);
}
$connection = $this->getWrappedConnection();
$logger = $this->_config->getSQLLogger();
if ($logger !== null) {
$logger->startQuery($sql, $params, $types);
}
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php
->
executeQuery
(line 33)
*
* @return Result
*/
public function execute(Connection $conn, array $params, array $types)
{
return $conn->executeQuery($this->sqlStatements, $params, $types, $this->queryCacheProfile);
}
}
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query.php
->
execute
(line 327)
$sqlParams,
$types,
$this->_em->getConnection()->getParams()
);
return $executor->execute($this->_em->getConnection(), $sqlParams, $types);
}
/**
* @param array<string,mixed> $sqlParams
* @param array<string,Type> $types
in
vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php
->
_doExecute
(line 1212)
$setCacheEntry = static function ($data) use ($cache, $result, $cacheItem, $realCacheKey): void {
$cache->save($cacheItem->set($result + [$realCacheKey => $data]));
};
}
$stmt = $this->_doExecute();
if (is_numeric($stmt)) {
$setCacheEntry($stmt);
return $stmt;
in
vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php
->
executeIgnoreQueryCache
(line 1166)
{
if ($this->cacheable && $this->isCacheEnabled()) {
return $this->executeUsingQueryCache($parameters, $hydrationMode);
}
return $this->executeIgnoreQueryCache($parameters, $hydrationMode);
}
/**
* Execute query ignoring second level cache.
*
in
vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php
->
execute
(line 901)
*
* @return mixed
*/
public function getResult($hydrationMode = self::HYDRATE_OBJECT)
{
return $this->execute(null, $hydrationMode);
}
/**
* Gets the array of results for the query.
*
}
public function getCurrentBonus(\DateTimeInterface $time): ?Bonus
{
$qb = $this->repo->getBonusBetweenDatesQueryBuilder($time, $time);
$result = $qb->getQuery()->getResult();
if (count($result)) {
return $result[0];
}
return null;
*
* @throws \Exception
*/
public function index(Request $request): JsonResponse
{
$bonus = $this->service->getCurrentBonus(new \DateTime());
if (!$bonus) {
return new JsonResponse([
'success' => false,
], Response::HTTP_NOT_FOUND);
in
vendor/symfony/http-kernel/HttpKernel.php
->
index
(line 163)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
Request::setTrustedHosts([$trustedHosts]);
}
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
PDOException
in
vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php
(line 33)
$safeParams = $params;
unset($safeParams['password'], $safeParams['url']);
try {
$pdo = new PDO(
$this->constructPdoDsn($safeParams),
$params['user'] ?? '',
$params['password'] ?? '',
$driverOptions,
);
in
vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php
->
__construct
(line 33)
$safeParams = $params;
unset($safeParams['password'], $safeParams['url']);
try {
$pdo = new PDO(
$this->constructPdoDsn($safeParams),
$params['user'] ?? '',
$params['password'] ?? '',
$driverOptions,
);
in
vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php
->
connect
(line 29)
*/
public function connect(
#[SensitiveParameter]
array $params
) {
return $this->wrappedDriver->connect($params);
}
/**
* {@inheritDoc}
*/
in
vendor/doctrine/dbal/src/Logging/Driver.php
->
connect
(line 34)
array $params
) {
$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 29)
*/
public function connect(
#[SensitiveParameter]
array $params
) {
return $this->wrappedDriver->connect($params);
}
/**
* {@inheritDoc}
*/
in
vendor/symfony/doctrine-bridge/Middleware/Debug/Driver.php
->
connect
(line 37)
}
public function connect(array $params): Connection
{
return new Connection(
parent::connect($params),
$this->debugDataHolder,
$this->stopwatch,
$this->connectionName,
);
}
in
vendor/doctrine/dbal/src/Connection.php
->
connect
(line 377)
if ($this->_conn !== null) {
return false;
}
try {
$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 1654)
'https://github.com/doctrine/dbal/issues/4966',
'Connection::getWrappedConnection() is deprecated.'
. ' Use Connection::getNativeConnection() to access the native connection.',
);
$this->connect();
return $this->_conn;
}
/** @return resource|object */
in
vendor/doctrine/dbal/src/Connection.php
->
getWrappedConnection
(line 1081)
): Result {
if ($qcp !== null) {
return $this->executeCacheQuery($sql, $params, $types, $qcp);
}
$connection = $this->getWrappedConnection();
$logger = $this->_config->getSQLLogger();
if ($logger !== null) {
$logger->startQuery($sql, $params, $types);
}
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php
->
executeQuery
(line 33)
*
* @return Result
*/
public function execute(Connection $conn, array $params, array $types)
{
return $conn->executeQuery($this->sqlStatements, $params, $types, $this->queryCacheProfile);
}
}
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query.php
->
execute
(line 327)
$sqlParams,
$types,
$this->_em->getConnection()->getParams()
);
return $executor->execute($this->_em->getConnection(), $sqlParams, $types);
}
/**
* @param array<string,mixed> $sqlParams
* @param array<string,Type> $types
in
vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php
->
_doExecute
(line 1212)
$setCacheEntry = static function ($data) use ($cache, $result, $cacheItem, $realCacheKey): void {
$cache->save($cacheItem->set($result + [$realCacheKey => $data]));
};
}
$stmt = $this->_doExecute();
if (is_numeric($stmt)) {
$setCacheEntry($stmt);
return $stmt;
in
vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php
->
executeIgnoreQueryCache
(line 1166)
{
if ($this->cacheable && $this->isCacheEnabled()) {
return $this->executeUsingQueryCache($parameters, $hydrationMode);
}
return $this->executeIgnoreQueryCache($parameters, $hydrationMode);
}
/**
* Execute query ignoring second level cache.
*
in
vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php
->
execute
(line 901)
*
* @return mixed
*/
public function getResult($hydrationMode = self::HYDRATE_OBJECT)
{
return $this->execute(null, $hydrationMode);
}
/**
* Gets the array of results for the query.
*
}
public function getCurrentBonus(\DateTimeInterface $time): ?Bonus
{
$qb = $this->repo->getBonusBetweenDatesQueryBuilder($time, $time);
$result = $qb->getQuery()->getResult();
if (count($result)) {
return $result[0];
}
return null;
*
* @throws \Exception
*/
public function index(Request $request): JsonResponse
{
$bonus = $this->service->getCurrentBonus(new \DateTime());
if (!$bonus) {
return new JsonResponse([
'success' => false,
], Response::HTTP_NOT_FOUND);
in
vendor/symfony/http-kernel/HttpKernel.php
->
index
(line 163)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
Request::setTrustedHosts([$trustedHosts]);
}
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
Logs
Level | Channel | Message |
---|---|---|
INFO 23:03:28 | deprecation |
User Deprecated: Since symfony/monolog-bridge 6.4: The "Symfony\Bridge\Monolog\Logger" class is deprecated, use HttpKernel's DebugLoggerConfigurator instead. { "exception": {} } |
INFO 23:03:28 | deprecation |
User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.factory.service" service is deprecated, use "session.storage.factory.native", "session.storage.factory.php_bridge" or "session.storage.factory.mock_file" instead. { "exception": {} } |
INFO 23:03:28 | deprecation |
User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.native" service is deprecated, use "session.storage.factory.native" instead. { "exception": {} } |
INFO 23:03:28 | deprecation |
User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.metadata_bag" service is deprecated, create your own "session.storage.factory" instead. { "exception": {} } |
Stack Traces 4
[4/4]
ConnectionException
|
---|
Doctrine\DBAL\Exception\ConnectionException: An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mainlb.interquest.nl failed: No address associated with hostname at vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:101 at Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter->convert() (vendor/doctrine/dbal/src/Connection.php:1938) at Doctrine\DBAL\Connection->handleDriverException() (vendor/doctrine/dbal/src/Connection.php:1886) at Doctrine\DBAL\Connection->convertException() (vendor/doctrine/dbal/src/Connection.php:379) at Doctrine\DBAL\Connection->connect() (vendor/doctrine/dbal/src/Connection.php:1654) at Doctrine\DBAL\Connection->getWrappedConnection() (vendor/doctrine/dbal/src/Connection.php:1081) at Doctrine\DBAL\Connection->executeQuery() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php:33) at Doctrine\ORM\Query\Exec\SingleSelectExecutor->execute() (vendor/doctrine/orm/lib/Doctrine/ORM/Query.php:327) at Doctrine\ORM\Query->_doExecute() (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:1212) at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache() (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:1166) at Doctrine\ORM\AbstractQuery->execute() (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:901) at Doctrine\ORM\AbstractQuery->getResult() (src/Service/Bonus/BonusService.php:58) at App\Service\Bonus\BonusService->getCurrentBonus() (src/Controller/Marketing/PublicBonusController.php:51) at App\Controller\Marketing\PublicBonusController->index() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:56) |
[3/4]
Exception
|
---|
Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mainlb.interquest.nl failed: No address associated with hostname at vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28 at Doctrine\DBAL\Driver\PDO\Exception::new() (vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:40) at Doctrine\DBAL\Driver\PDO\MySQL\Driver->connect() (vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:29) at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect() (vendor/doctrine/dbal/src/Logging/Driver.php:34) at Doctrine\DBAL\Logging\Driver->connect() (vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:29) 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/Connection.php:377) at Doctrine\DBAL\Connection->connect() (vendor/doctrine/dbal/src/Connection.php:1654) at Doctrine\DBAL\Connection->getWrappedConnection() (vendor/doctrine/dbal/src/Connection.php:1081) at Doctrine\DBAL\Connection->executeQuery() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php:33) at Doctrine\ORM\Query\Exec\SingleSelectExecutor->execute() (vendor/doctrine/orm/lib/Doctrine/ORM/Query.php:327) at Doctrine\ORM\Query->_doExecute() (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:1212) at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache() (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:1166) at Doctrine\ORM\AbstractQuery->execute() (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:901) at Doctrine\ORM\AbstractQuery->getResult() (src/Service/Bonus/BonusService.php:58) at App\Service\Bonus\BonusService->getCurrentBonus() (src/Controller/Marketing/PublicBonusController.php:51) at App\Controller\Marketing\PublicBonusController->index() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:56) |
[2/4]
PDOException
|
---|
PDOException: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mainlb.interquest.nl failed: No address associated with hostname at vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:33 at PDO->__construct() (vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:33) at Doctrine\DBAL\Driver\PDO\MySQL\Driver->connect() (vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:29) at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect() (vendor/doctrine/dbal/src/Logging/Driver.php:34) at Doctrine\DBAL\Logging\Driver->connect() (vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:29) 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/Connection.php:377) at Doctrine\DBAL\Connection->connect() (vendor/doctrine/dbal/src/Connection.php:1654) at Doctrine\DBAL\Connection->getWrappedConnection() (vendor/doctrine/dbal/src/Connection.php:1081) at Doctrine\DBAL\Connection->executeQuery() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php:33) at Doctrine\ORM\Query\Exec\SingleSelectExecutor->execute() (vendor/doctrine/orm/lib/Doctrine/ORM/Query.php:327) at Doctrine\ORM\Query->_doExecute() (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:1212) at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache() (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:1166) at Doctrine\ORM\AbstractQuery->execute() (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:901) at Doctrine\ORM\AbstractQuery->getResult() (src/Service/Bonus/BonusService.php:58) at App\Service\Bonus\BonusService->getCurrentBonus() (src/Controller/Marketing/PublicBonusController.php:51) at App\Controller\Marketing\PublicBonusController->index() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:56) |
[1/4]
PDOException
|
---|
PDOException: PDO::__construct(): php_network_getaddresses: getaddrinfo for mainlb.interquest.nl failed: No address associated with hostname at vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:33 at PDO->__construct() (vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:33) at Doctrine\DBAL\Driver\PDO\MySQL\Driver->connect() (vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:29) at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect() (vendor/doctrine/dbal/src/Logging/Driver.php:34) at Doctrine\DBAL\Logging\Driver->connect() (vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:29) 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/Connection.php:377) at Doctrine\DBAL\Connection->connect() (vendor/doctrine/dbal/src/Connection.php:1654) at Doctrine\DBAL\Connection->getWrappedConnection() (vendor/doctrine/dbal/src/Connection.php:1081) at Doctrine\DBAL\Connection->executeQuery() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php:33) at Doctrine\ORM\Query\Exec\SingleSelectExecutor->execute() (vendor/doctrine/orm/lib/Doctrine/ORM/Query.php:327) at Doctrine\ORM\Query->_doExecute() (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:1212) at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache() (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:1166) at Doctrine\ORM\AbstractQuery->execute() (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:901) at Doctrine\ORM\AbstractQuery->getResult() (src/Service/Bonus/BonusService.php:58) at App\Service\Bonus\BonusService->getCurrentBonus() (src/Controller/Marketing/PublicBonusController.php:51) at App\Controller\Marketing\PublicBonusController->index() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:56) |