27 02 2025 10:13:51 El Archivo 2025-02-27 - log_error.txt se ha creado ************************************************************CP1006820220 -- eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1AxMDA2ODIwMjIwIiwiaWF0IjoxNzQwNjY4NDQ2LCJleHAiOjE3NDA2Nzc0NDZ9.PGz9wPjDkvDlUOl-uSOrh80di5nhTGpi7nbluQRSvA4 -- MM-ERROR: HTTP/1.1 500 Internal Server Error Date: Thu, 27 Feb 2025 15:13:51 GMT Server: Apache/2.4.41 (Ubuntu) X-Powered-By: PHP/8.1.27 Access-Control-Allow-Origin: * Access-Control-Allow-Headers: X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method, Authorization, Authentication Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, DELETE Allow: GET, POST, OPTIONS, PUT, DELETE X-Debug-Exception: An%20exception%20occurred%20while%20executing%20a%20query%3A%20SQLSTATE%5B22P02%5D%3A%20Invalid%20text%20representation%3A%207%20ERROR%3A%20%20la%20sintaxis%20de%20entrada%20no%20es%20v%C3%83%C2%A1lida%20para%20tipo%20integer%3A%20%C3%82%C2%ABConsumo%20restaurante%C3%82%C2%BB%0ALINE%201%3A%20...%2C%20usuario_respuesta%29%20VALUES%20%28%2717%27%2C%20%27100%27%2C%20%274343%27%2C%20%27Consumo%20r...%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5E X-Debug-Exception-File: %2Fvar%2Fwww%2Fphp81%2Fserversoap%2Frecaudos%2Fvendor%2Fdoctrine%2Fdbal%2Fsrc%2FDriver%2FAPI%2FPostgreSQL%2FExceptionConverter.php:87 Cache-Control: no-cache, private X-Robots-Tag: noindex Connection: close Content-Type: text/html; charset=UTF-8 X-Original-Transfer-Encoding: chunked Content-Length: 284544
// We have to match against the SQLSTATE in the error message in these cases.
if ($exception->getCode() === 7 && strpos($exception->getMessage(), 'SQLSTATE[08006]') !== false) {
return new ConnectionException($exception, $query);
}
return new DriverException($exception, $query);
}
}
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();
}
Driver\Exception $e,
string $sql,
array $params = [],
array $types = []
): DriverException {
return $this->handleDriverException($e, new Query($sql, $params, $types));
}
/** @internal */
final public function convertException(Driver\Exception $e): DriverException
{
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($logger !== null) {
$logger->stopQuery();
}
}
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
} */
// $resultSet = $stmt->executeQuery();//execute();
/* try { */
// $resultSet_aux = $stmt->executeQuery();//execute();
// $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
$resultSet = $stmt->executeQuery()->fetchAllAssociative();
$this->cnn->close();
/* } catch (\Throwable $th)
{
} */
// $this->log->logs("respuestaaa ",array($resultSet));
case 24:
case 25:
return $this->consulta_socket($con,$sql);
break;
default:
return $this->query_normal($con,$sql);
break;
}
}
}
$cc_jefe = $usu2;
$nombre_jefe = $res_cargo[0]['nombre'];
}
$sql_ins = "INSERT INTO sem_ant_viat_reg_facturas (solicitud_id, nit, ticket_corr_id, tipo_gasto, ccostos, descripcion, tipo_soporte, url, fechai, fechaf, dias, cantidad, valor_u, total, tipo_fact, usuario_respuesta) VALUES ('$solicitud_id', '$nit', '$ticket_corr_id', '$tipo_gasto', '$ccostos', '$descripcion', '$tipo_soporte', '$url', '$fechai', '$fechaf', '$dias', '$cantidad', '$valor_u', '$total', '$tipo_fact', '$cc_jefe') RETURNING id";
$res_ins = $this->cnn->query('0', $sql_ins);
if (count($res_ins) <= 0)
{
$respuesta["info"] = $respuesta["message"] = "No se realizo el registro, intente nuevamente";
$response->headers->set('HTTP_AUTHENTICATION', $token_auth);
return $response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
} else {
$code = $exception->getCode();
$sqlState = null;
}
return new self($exception->getMessage(), $sqlState, $code, $exception);
}
}
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
}
$logger->startQuery($this->sql, $this->params, $this->types);
}
try {
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
} */
// $resultSet = $stmt->executeQuery();//execute();
/* try { */
// $resultSet_aux = $stmt->executeQuery();//execute();
// $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
$resultSet = $stmt->executeQuery()->fetchAllAssociative();
$this->cnn->close();
/* } catch (\Throwable $th)
{
} */
// $this->log->logs("respuestaaa ",array($resultSet));
case 24:
case 25:
return $this->consulta_socket($con,$sql);
break;
default:
return $this->query_normal($con,$sql);
break;
}
}
}
$cc_jefe = $usu2;
$nombre_jefe = $res_cargo[0]['nombre'];
}
$sql_ins = "INSERT INTO sem_ant_viat_reg_facturas (solicitud_id, nit, ticket_corr_id, tipo_gasto, ccostos, descripcion, tipo_soporte, url, fechai, fechaf, dias, cantidad, valor_u, total, tipo_fact, usuario_respuesta) VALUES ('$solicitud_id', '$nit', '$ticket_corr_id', '$tipo_gasto', '$ccostos', '$descripcion', '$tipo_soporte', '$url', '$fechai', '$fechaf', '$dias', '$cantidad', '$valor_u', '$total', '$tipo_fact', '$cc_jefe') RETURNING id";
$res_ins = $this->cnn->query('0', $sql_ins);
if (count($res_ins) <= 0)
{
$respuesta["info"] = $respuesta["message"] = "No se realizo el registro, intente nuevamente";
$response->headers->set('HTTP_AUTHENTICATION', $token_auth);
return $response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
. ' Statement::bindParam() or Statement::bindValue() instead.',
);
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
. ' Statement::bindParam() or Statement::bindValue() instead.',
);
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
$logger->startQuery($this->sql, $this->params, $this->types);
}
try {
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
} */
// $resultSet = $stmt->executeQuery();//execute();
/* try { */
// $resultSet_aux = $stmt->executeQuery();//execute();
// $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
$resultSet = $stmt->executeQuery()->fetchAllAssociative();
$this->cnn->close();
/* } catch (\Throwable $th)
{
} */
// $this->log->logs("respuestaaa ",array($resultSet));
case 24:
case 25:
return $this->consulta_socket($con,$sql);
break;
default:
return $this->query_normal($con,$sql);
break;
}
}
}
$cc_jefe = $usu2;
$nombre_jefe = $res_cargo[0]['nombre'];
}
$sql_ins = "INSERT INTO sem_ant_viat_reg_facturas (solicitud_id, nit, ticket_corr_id, tipo_gasto, ccostos, descripcion, tipo_soporte, url, fechai, fechaf, dias, cantidad, valor_u, total, tipo_fact, usuario_respuesta) VALUES ('$solicitud_id', '$nit', '$ticket_corr_id', '$tipo_gasto', '$ccostos', '$descripcion', '$tipo_soporte', '$url', '$fechai', '$fechaf', '$dias', '$cantidad', '$valor_u', '$total', '$tipo_fact', '$cc_jefe') RETURNING id";
$res_ins = $this->cnn->query('0', $sql_ins);
if (count($res_ins) <= 0)
{
$respuesta["info"] = $respuesta["message"] = "No se realizo el registro, intente nuevamente";
$response->headers->set('HTTP_AUTHENTICATION', $token_auth);
return $response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
No log messages
[3/3]
DriverException
|
---|
Doctrine\DBAL\Exception\DriverException: An exception occurred while executing a query: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: la sintaxis de entrada no es válida para tipo integer: «Consumo restaurante» LINE 1: ..., usuario_respuesta) VALUES ('17', '100', '4343', 'Consumo r... ^ at vendor/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php:87 at Doctrine\DBAL\Driver\API\PostgreSQL\ExceptionConverter->convert() (vendor/doctrine/dbal/src/Connection.php:1908) at Doctrine\DBAL\Connection->handleDriverException() (vendor/doctrine/dbal/src/Connection.php:1851) at Doctrine\DBAL\Connection->convertExceptionDuringQuery() (vendor/doctrine/dbal/src/Statement.php:194) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:574) at App\Services\Conexion->query_normal() (src/Services/Conexion.php:533) at App\Services\Conexion->query() (src/Controller/PtatController.php:5919) at App\Controller\PtatController->metodos() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) 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:29) at require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
[2/3]
Exception
|
---|
Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: la sintaxis de entrada no es válida para tipo integer: «Consumo restaurante» LINE 1: ..., usuario_respuesta) VALUES ('17', '100', '4343', 'Consumo r... ^ at vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28 at Doctrine\DBAL\Driver\PDO\Exception::new() (vendor/doctrine/dbal/src/Driver/PDO/Statement.php:136) at Doctrine\DBAL\Driver\PDO\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:190) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:574) at App\Services\Conexion->query_normal() (src/Services/Conexion.php:533) at App\Services\Conexion->query() (src/Controller/PtatController.php:5919) at App\Controller\PtatController->metodos() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) 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:29) at require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
[1/3]
PDOException
|
---|
PDOException: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: la sintaxis de entrada no es válida para tipo integer: «Consumo restaurante» LINE 1: ..., usuario_respuesta) VALUES ('17', '100', '4343', 'Consumo r... ^ at vendor/doctrine/dbal/src/Driver/PDO/Statement.php:134 at PDOStatement->execute() (vendor/doctrine/dbal/src/Driver/PDO/Statement.php:134) at Doctrine\DBAL\Driver\PDO\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:190) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:574) at App\Services\Conexion->query_normal() (src/Services/Conexion.php:533) at App\Services\Conexion->query() (src/Controller/PtatController.php:5919) at App\Controller\PtatController->metodos() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) 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:29) at require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
// We have to match against the SQLSTATE in the error message in these cases.
if ($exception->getCode() === 7 && strpos($exception->getMessage(), 'SQLSTATE[08006]') !== false) {
return new ConnectionException($exception, $query);
}
return new DriverException($exception, $query);
}
}
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();
}
Driver\Exception $e,
string $sql,
array $params = [],
array $types = []
): DriverException {
return $this->handleDriverException($e, new Query($sql, $params, $types));
}
/** @internal */
final public function convertException(Driver\Exception $e): DriverException
{
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($logger !== null) {
$logger->stopQuery();
}
}
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
} */
// $resultSet = $stmt->executeQuery();//execute();
/* try { */
// $resultSet_aux = $stmt->executeQuery();//execute();
// $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
$resultSet = $stmt->executeQuery()->fetchAllAssociative();
$this->cnn->close();
/* } catch (\Throwable $th)
{
} */
// $this->log->logs("respuestaaa ",array($resultSet));
case 24:
case 25:
return $this->consulta_socket($con,$sql);
break;
default:
return $this->query_normal($con,$sql);
break;
}
}
}
$cc_jefe = $usu2;
$nombre_jefe = $res_cargo[0]['nombre'];
}
$sql_ins = "INSERT INTO sem_ant_viat_reg_facturas (solicitud_id, nit, ticket_corr_id, tipo_gasto, ccostos, descripcion, tipo_soporte, url, fechai, fechaf, dias, cantidad, valor_u, total, tipo_fact, usuario_respuesta) VALUES ('$solicitud_id', '$nit', '$ticket_corr_id', '$tipo_gasto', '$ccostos', '$descripcion', '$tipo_soporte', '$url', '$fechai', '$fechaf', '$dias', '$cantidad', '$valor_u', '$total', '$tipo_fact', '$cc_jefe') RETURNING id";
$res_ins = $this->cnn->query('0', $sql_ins);
if (count($res_ins) <= 0)
{
$respuesta["info"] = $respuesta["message"] = "No se realizo el registro, intente nuevamente";
$response->headers->set('HTTP_AUTHENTICATION', $token_auth);
return $response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
} else {
$code = $exception->getCode();
$sqlState = null;
}
return new self($exception->getMessage(), $sqlState, $code, $exception);
}
}
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
}
$logger->startQuery($this->sql, $this->params, $this->types);
}
try {
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
} */
// $resultSet = $stmt->executeQuery();//execute();
/* try { */
// $resultSet_aux = $stmt->executeQuery();//execute();
// $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
$resultSet = $stmt->executeQuery()->fetchAllAssociative();
$this->cnn->close();
/* } catch (\Throwable $th)
{
} */
// $this->log->logs("respuestaaa ",array($resultSet));
case 24:
case 25:
return $this->consulta_socket($con,$sql);
break;
default:
return $this->query_normal($con,$sql);
break;
}
}
}
$cc_jefe = $usu2;
$nombre_jefe = $res_cargo[0]['nombre'];
}
$sql_ins = "INSERT INTO sem_ant_viat_reg_facturas (solicitud_id, nit, ticket_corr_id, tipo_gasto, ccostos, descripcion, tipo_soporte, url, fechai, fechaf, dias, cantidad, valor_u, total, tipo_fact, usuario_respuesta) VALUES ('$solicitud_id', '$nit', '$ticket_corr_id', '$tipo_gasto', '$ccostos', '$descripcion', '$tipo_soporte', '$url', '$fechai', '$fechaf', '$dias', '$cantidad', '$valor_u', '$total', '$tipo_fact', '$cc_jefe') RETURNING id";
$res_ins = $this->cnn->query('0', $sql_ins);
if (count($res_ins) <= 0)
{
$respuesta["info"] = $respuesta["message"] = "No se realizo el registro, intente nuevamente";
$response->headers->set('HTTP_AUTHENTICATION', $token_auth);
return $response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
. ' Statement::bindParam() or Statement::bindValue() instead.',
);
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
. ' Statement::bindParam() or Statement::bindValue() instead.',
);
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
$logger->startQuery($this->sql, $this->params, $this->types);
}
try {
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
} */
// $resultSet = $stmt->executeQuery();//execute();
/* try { */
// $resultSet_aux = $stmt->executeQuery();//execute();
// $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
$resultSet = $stmt->executeQuery()->fetchAllAssociative();
$this->cnn->close();
/* } catch (\Throwable $th)
{
} */
// $this->log->logs("respuestaaa ",array($resultSet));
case 24:
case 25:
return $this->consulta_socket($con,$sql);
break;
default:
return $this->query_normal($con,$sql);
break;
}
}
}
$cc_jefe = $usu2;
$nombre_jefe = $res_cargo[0]['nombre'];
}
$sql_ins = "INSERT INTO sem_ant_viat_reg_facturas (solicitud_id, nit, ticket_corr_id, tipo_gasto, ccostos, descripcion, tipo_soporte, url, fechai, fechaf, dias, cantidad, valor_u, total, tipo_fact, usuario_respuesta) VALUES ('$solicitud_id', '$nit', '$ticket_corr_id', '$tipo_gasto', '$ccostos', '$descripcion', '$tipo_soporte', '$url', '$fechai', '$fechaf', '$dias', '$cantidad', '$valor_u', '$total', '$tipo_fact', '$cc_jefe') RETURNING id";
$res_ins = $this->cnn->query('0', $sql_ins);
if (count($res_ins) <= 0)
{
$respuesta["info"] = $respuesta["message"] = "No se realizo el registro, intente nuevamente";
$response->headers->set('HTTP_AUTHENTICATION', $token_auth);
return $response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
No log messages
[3/3]
DriverException
|
---|
Doctrine\DBAL\Exception\DriverException: An exception occurred while executing a query: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: la sintaxis de entrada no es válida para tipo integer: «» LINE 1: ..., usuario_respuesta) VALUES ('17', '100', '4343', '', '1090'... ^ at vendor/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php:87 at Doctrine\DBAL\Driver\API\PostgreSQL\ExceptionConverter->convert() (vendor/doctrine/dbal/src/Connection.php:1908) at Doctrine\DBAL\Connection->handleDriverException() (vendor/doctrine/dbal/src/Connection.php:1851) at Doctrine\DBAL\Connection->convertExceptionDuringQuery() (vendor/doctrine/dbal/src/Statement.php:194) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:574) at App\Services\Conexion->query_normal() (src/Services/Conexion.php:533) at App\Services\Conexion->query() (src/Controller/PtatController.php:5921) at App\Controller\PtatController->metodos() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) 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:29) at require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
[2/3]
Exception
|
---|
Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: la sintaxis de entrada no es válida para tipo integer: «» LINE 1: ..., usuario_respuesta) VALUES ('17', '100', '4343', '', '1090'... ^ at vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28 at Doctrine\DBAL\Driver\PDO\Exception::new() (vendor/doctrine/dbal/src/Driver/PDO/Statement.php:136) at Doctrine\DBAL\Driver\PDO\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:190) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:574) at App\Services\Conexion->query_normal() (src/Services/Conexion.php:533) at App\Services\Conexion->query() (src/Controller/PtatController.php:5921) at App\Controller\PtatController->metodos() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) 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:29) at require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
[1/3]
PDOException
|
---|
PDOException: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: la sintaxis de entrada no es válida para tipo integer: «» LINE 1: ..., usuario_respuesta) VALUES ('17', '100', '4343', '', '1090'... ^ at vendor/doctrine/dbal/src/Driver/PDO/Statement.php:134 at PDOStatement->execute() (vendor/doctrine/dbal/src/Driver/PDO/Statement.php:134) at Doctrine\DBAL\Driver\PDO\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:190) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:574) at App\Services\Conexion->query_normal() (src/Services/Conexion.php:533) at App\Services\Conexion->query() (src/Controller/PtatController.php:5921) at App\Controller\PtatController->metodos() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) 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:29) at require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
// We have to match against the SQLSTATE in the error message in these cases.
if ($exception->getCode() === 7 && strpos($exception->getMessage(), 'SQLSTATE[08006]') !== false) {
return new ConnectionException($exception, $query);
}
return new DriverException($exception, $query);
}
}
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();
}
Driver\Exception $e,
string $sql,
array $params = [],
array $types = []
): DriverException {
return $this->handleDriverException($e, new Query($sql, $params, $types));
}
/** @internal */
final public function convertException(Driver\Exception $e): DriverException
{
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($logger !== null) {
$logger->stopQuery();
}
}
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
} */
// $resultSet = $stmt->executeQuery();//execute();
/* try { */
// $resultSet_aux = $stmt->executeQuery();//execute();
// $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
$resultSet = $stmt->executeQuery()->fetchAllAssociative();
$this->cnn->close();
/* } catch (\Throwable $th)
{
} */
// $this->log->logs("respuestaaa ",array($resultSet));
case 24:
case 25:
return $this->consulta_socket($con,$sql);
break;
default:
return $this->query_normal($con,$sql);
break;
}
}
}
$cc_jefe = $usu2;
$nombre_jefe = $res_cargo[0]['nombre'];
}
$sql_ins = "INSERT INTO sem_ant_viat_reg_facturas (solicitud_id, nit, ticket_corr_id, tipo_gasto, ccostos, descripcion, tipo_soporte, url, fechai, fechaf, dias, cantidad, valor_u, total, tipo_fact, usuario_respuesta) VALUES ('$solicitud_id', '$nit', '$ticket_corr_id', '$tipo_gasto', '$ccostos', '$descripcion', '$tipo_soporte', '$url', '$fechai', '$fechaf', '$dias', '$cantidad', '$valor_u', '$total', '$tipo_fact', '$cc_jefe') RETURNING id";
$res_ins = $this->cnn->query('0', $sql_ins);
if (count($res_ins) <= 0)
{
$respuesta["info"] = $respuesta["message"] = "No se realizo el registro, intente nuevamente";
$response->headers->set('HTTP_AUTHENTICATION', $token_auth);
return $response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
} else {
$code = $exception->getCode();
$sqlState = null;
}
return new self($exception->getMessage(), $sqlState, $code, $exception);
}
}
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
}
$logger->startQuery($this->sql, $this->params, $this->types);
}
try {
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
} */
// $resultSet = $stmt->executeQuery();//execute();
/* try { */
// $resultSet_aux = $stmt->executeQuery();//execute();
// $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
$resultSet = $stmt->executeQuery()->fetchAllAssociative();
$this->cnn->close();
/* } catch (\Throwable $th)
{
} */
// $this->log->logs("respuestaaa ",array($resultSet));
case 24:
case 25:
return $this->consulta_socket($con,$sql);
break;
default:
return $this->query_normal($con,$sql);
break;
}
}
}
$cc_jefe = $usu2;
$nombre_jefe = $res_cargo[0]['nombre'];
}
$sql_ins = "INSERT INTO sem_ant_viat_reg_facturas (solicitud_id, nit, ticket_corr_id, tipo_gasto, ccostos, descripcion, tipo_soporte, url, fechai, fechaf, dias, cantidad, valor_u, total, tipo_fact, usuario_respuesta) VALUES ('$solicitud_id', '$nit', '$ticket_corr_id', '$tipo_gasto', '$ccostos', '$descripcion', '$tipo_soporte', '$url', '$fechai', '$fechaf', '$dias', '$cantidad', '$valor_u', '$total', '$tipo_fact', '$cc_jefe') RETURNING id";
$res_ins = $this->cnn->query('0', $sql_ins);
if (count($res_ins) <= 0)
{
$respuesta["info"] = $respuesta["message"] = "No se realizo el registro, intente nuevamente";
$response->headers->set('HTTP_AUTHENTICATION', $token_auth);
return $response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
. ' Statement::bindParam() or Statement::bindValue() instead.',
);
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
. ' Statement::bindParam() or Statement::bindValue() instead.',
);
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
$logger->startQuery($this->sql, $this->params, $this->types);
}
try {
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
} */
// $resultSet = $stmt->executeQuery();//execute();
/* try { */
// $resultSet_aux = $stmt->executeQuery();//execute();
// $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
$resultSet = $stmt->executeQuery()->fetchAllAssociative();
$this->cnn->close();
/* } catch (\Throwable $th)
{
} */
// $this->log->logs("respuestaaa ",array($resultSet));
case 24:
case 25:
return $this->consulta_socket($con,$sql);
break;
default:
return $this->query_normal($con,$sql);
break;
}
}
}
$cc_jefe = $usu2;
$nombre_jefe = $res_cargo[0]['nombre'];
}
$sql_ins = "INSERT INTO sem_ant_viat_reg_facturas (solicitud_id, nit, ticket_corr_id, tipo_gasto, ccostos, descripcion, tipo_soporte, url, fechai, fechaf, dias, cantidad, valor_u, total, tipo_fact, usuario_respuesta) VALUES ('$solicitud_id', '$nit', '$ticket_corr_id', '$tipo_gasto', '$ccostos', '$descripcion', '$tipo_soporte', '$url', '$fechai', '$fechaf', '$dias', '$cantidad', '$valor_u', '$total', '$tipo_fact', '$cc_jefe') RETURNING id";
$res_ins = $this->cnn->query('0', $sql_ins);
if (count($res_ins) <= 0)
{
$respuesta["info"] = $respuesta["message"] = "No se realizo el registro, intente nuevamente";
$response->headers->set('HTTP_AUTHENTICATION', $token_auth);
return $response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
No log messages
[3/3]
DriverException
|
---|
Doctrine\DBAL\Exception\DriverException: An exception occurred while executing a query: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: la sintaxis de entrada no es válida para tipo integer: «» LINE 1: ...edede', '0', '', '27-02-2025', '28-02-2025', '2', '', '', '9... ^ at vendor/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php:87 at Doctrine\DBAL\Driver\API\PostgreSQL\ExceptionConverter->convert() (vendor/doctrine/dbal/src/Connection.php:1908) at Doctrine\DBAL\Connection->handleDriverException() (vendor/doctrine/dbal/src/Connection.php:1851) at Doctrine\DBAL\Connection->convertExceptionDuringQuery() (vendor/doctrine/dbal/src/Statement.php:194) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:574) at App\Services\Conexion->query_normal() (src/Services/Conexion.php:533) at App\Services\Conexion->query() (src/Controller/PtatController.php:5921) at App\Controller\PtatController->metodos() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) 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:29) at require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
[2/3]
Exception
|
---|
Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: la sintaxis de entrada no es válida para tipo integer: «» LINE 1: ...edede', '0', '', '27-02-2025', '28-02-2025', '2', '', '', '9... ^ at vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28 at Doctrine\DBAL\Driver\PDO\Exception::new() (vendor/doctrine/dbal/src/Driver/PDO/Statement.php:136) at Doctrine\DBAL\Driver\PDO\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:190) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:574) at App\Services\Conexion->query_normal() (src/Services/Conexion.php:533) at App\Services\Conexion->query() (src/Controller/PtatController.php:5921) at App\Controller\PtatController->metodos() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) 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:29) at require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
[1/3]
PDOException
|
---|
PDOException: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: la sintaxis de entrada no es válida para tipo integer: «» LINE 1: ...edede', '0', '', '27-02-2025', '28-02-2025', '2', '', '', '9... ^ at vendor/doctrine/dbal/src/Driver/PDO/Statement.php:134 at PDOStatement->execute() (vendor/doctrine/dbal/src/Driver/PDO/Statement.php:134) at Doctrine\DBAL\Driver\PDO\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:190) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:574) at App\Services\Conexion->query_normal() (src/Services/Conexion.php:533) at App\Services\Conexion->query() (src/Controller/PtatController.php:5921) at App\Controller\PtatController->metodos() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) 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:29) at require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
case '3F000':
return new SchemaDoesNotExist($exception, $query);
case '42601':
return new SyntaxErrorException($exception, $query);
case '42702':
return new NonUniqueFieldNameException($exception, $query);
case '42703':
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();
}
Driver\Exception $e,
string $sql,
array $params = [],
array $types = []
): DriverException {
return $this->handleDriverException($e, new Query($sql, $params, $types));
}
/** @internal */
final public function convertException(Driver\Exception $e): DriverException
{
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($logger !== null) {
$logger->stopQuery();
}
}
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
} */
// $resultSet = $stmt->executeQuery();//execute();
/* try { */
// $resultSet_aux = $stmt->executeQuery();//execute();
// $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
$resultSet = $stmt->executeQuery()->fetchAllAssociative();
$this->cnn->close();
/* } catch (\Throwable $th)
{
} */
// $this->log->logs("respuestaaa ",array($resultSet));
case 24:
case 25:
return $this->consulta_socket($con,$sql);
break;
default:
return $this->query_normal($con,$sql);
break;
}
}
}
$cc_jefe = $usu2;
$nombre_jefe = $res_cargo[0]['nombre'];
}
$sql_ins = "INSERT INTO sem_ant_viat_reg_facturas (solicitud_id, nit, ticket_corr_id, tipo_gasto, ccostos, descripcion, tipo_soporte, url, fechai, fechaf, dias, cantidad, valor_u, total, tipo_fact, usuario_respuesta) VALUES ('$solicitud_id', '$nit', '$ticket_corr_id', '$tipo_gasto', '$ccostos', '$descripcion', '$tipo_soporte', '$url', '$fechai', '$fechaf', $dias, $cantidad, $valor_u, '$total', '$tipo_fact', '$cc_jefe') RETURNING id";
$res_ins = $this->cnn->query('0', $sql_ins);
if (count($res_ins) <= 0)
{
$respuesta["info"] = $respuesta["message"] = "No se realizo el registro, intente nuevamente";
$response->headers->set('HTTP_AUTHENTICATION', $token_auth);
return $response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
} else {
$code = $exception->getCode();
$sqlState = null;
}
return new self($exception->getMessage(), $sqlState, $code, $exception);
}
}
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
}
$logger->startQuery($this->sql, $this->params, $this->types);
}
try {
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
} */
// $resultSet = $stmt->executeQuery();//execute();
/* try { */
// $resultSet_aux = $stmt->executeQuery();//execute();
// $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
$resultSet = $stmt->executeQuery()->fetchAllAssociative();
$this->cnn->close();
/* } catch (\Throwable $th)
{
} */
// $this->log->logs("respuestaaa ",array($resultSet));
case 24:
case 25:
return $this->consulta_socket($con,$sql);
break;
default:
return $this->query_normal($con,$sql);
break;
}
}
}
$cc_jefe = $usu2;
$nombre_jefe = $res_cargo[0]['nombre'];
}
$sql_ins = "INSERT INTO sem_ant_viat_reg_facturas (solicitud_id, nit, ticket_corr_id, tipo_gasto, ccostos, descripcion, tipo_soporte, url, fechai, fechaf, dias, cantidad, valor_u, total, tipo_fact, usuario_respuesta) VALUES ('$solicitud_id', '$nit', '$ticket_corr_id', '$tipo_gasto', '$ccostos', '$descripcion', '$tipo_soporte', '$url', '$fechai', '$fechaf', $dias, $cantidad, $valor_u, '$total', '$tipo_fact', '$cc_jefe') RETURNING id";
$res_ins = $this->cnn->query('0', $sql_ins);
if (count($res_ins) <= 0)
{
$respuesta["info"] = $respuesta["message"] = "No se realizo el registro, intente nuevamente";
$response->headers->set('HTTP_AUTHENTICATION', $token_auth);
return $response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
. ' Statement::bindParam() or Statement::bindValue() instead.',
);
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
. ' Statement::bindParam() or Statement::bindValue() instead.',
);
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
$logger->startQuery($this->sql, $this->params, $this->types);
}
try {
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
} */
// $resultSet = $stmt->executeQuery();//execute();
/* try { */
// $resultSet_aux = $stmt->executeQuery();//execute();
// $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
$resultSet = $stmt->executeQuery()->fetchAllAssociative();
$this->cnn->close();
/* } catch (\Throwable $th)
{
} */
// $this->log->logs("respuestaaa ",array($resultSet));
case 24:
case 25:
return $this->consulta_socket($con,$sql);
break;
default:
return $this->query_normal($con,$sql);
break;
}
}
}
$cc_jefe = $usu2;
$nombre_jefe = $res_cargo[0]['nombre'];
}
$sql_ins = "INSERT INTO sem_ant_viat_reg_facturas (solicitud_id, nit, ticket_corr_id, tipo_gasto, ccostos, descripcion, tipo_soporte, url, fechai, fechaf, dias, cantidad, valor_u, total, tipo_fact, usuario_respuesta) VALUES ('$solicitud_id', '$nit', '$ticket_corr_id', '$tipo_gasto', '$ccostos', '$descripcion', '$tipo_soporte', '$url', '$fechai', '$fechaf', $dias, $cantidad, $valor_u, '$total', '$tipo_fact', '$cc_jefe') RETURNING id";
$res_ins = $this->cnn->query('0', $sql_ins);
if (count($res_ins) <= 0)
{
$respuesta["info"] = $respuesta["message"] = "No se realizo el registro, intente nuevamente";
$response->headers->set('HTTP_AUTHENTICATION', $token_auth);
return $response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
No log messages
[3/3]
SyntaxErrorException
|
---|
Doctrine\DBAL\Exception\SyntaxErrorException: An exception occurred while executing a query: SQLSTATE[42601]: Syntax error: 7 ERROR: error de sintaxis en o cerca de «,» LINE 1: ...he okis', '0', '', '27-02-2025', '28-02-2025', 2, , , '85000... ^ at vendor/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php:62 at Doctrine\DBAL\Driver\API\PostgreSQL\ExceptionConverter->convert() (vendor/doctrine/dbal/src/Connection.php:1908) at Doctrine\DBAL\Connection->handleDriverException() (vendor/doctrine/dbal/src/Connection.php:1851) at Doctrine\DBAL\Connection->convertExceptionDuringQuery() (vendor/doctrine/dbal/src/Statement.php:194) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:574) at App\Services\Conexion->query_normal() (src/Services/Conexion.php:533) at App\Services\Conexion->query() (src/Controller/PtatController.php:5921) at App\Controller\PtatController->metodos() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) 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:29) at require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
[2/3]
Exception
|
---|
Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[42601]: Syntax error: 7 ERROR: error de sintaxis en o cerca de «,» LINE 1: ...he okis', '0', '', '27-02-2025', '28-02-2025', 2, , , '85000... ^ at vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28 at Doctrine\DBAL\Driver\PDO\Exception::new() (vendor/doctrine/dbal/src/Driver/PDO/Statement.php:136) at Doctrine\DBAL\Driver\PDO\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:190) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:574) at App\Services\Conexion->query_normal() (src/Services/Conexion.php:533) at App\Services\Conexion->query() (src/Controller/PtatController.php:5921) at App\Controller\PtatController->metodos() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) 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:29) at require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
[1/3]
PDOException
|
---|
PDOException: SQLSTATE[42601]: Syntax error: 7 ERROR: error de sintaxis en o cerca de «,» LINE 1: ...he okis', '0', '', '27-02-2025', '28-02-2025', 2, , , '85000... ^ at vendor/doctrine/dbal/src/Driver/PDO/Statement.php:134 at PDOStatement->execute() (vendor/doctrine/dbal/src/Driver/PDO/Statement.php:134) at Doctrine\DBAL\Driver\PDO\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:190) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:574) at App\Services\Conexion->query_normal() (src/Services/Conexion.php:533) at App\Services\Conexion->query() (src/Controller/PtatController.php:5921) at App\Controller\PtatController->metodos() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) 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:29) at require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
case '3F000':
return new SchemaDoesNotExist($exception, $query);
case '42601':
return new SyntaxErrorException($exception, $query);
case '42702':
return new NonUniqueFieldNameException($exception, $query);
case '42703':
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();
}
Driver\Exception $e,
string $sql,
array $params = [],
array $types = []
): DriverException {
return $this->handleDriverException($e, new Query($sql, $params, $types));
}
/** @internal */
final public function convertException(Driver\Exception $e): DriverException
{
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($logger !== null) {
$logger->stopQuery();
}
}
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
} */
// $resultSet = $stmt->executeQuery();//execute();
/* try { */
// $resultSet_aux = $stmt->executeQuery();//execute();
// $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
$resultSet = $stmt->executeQuery()->fetchAllAssociative();
$this->cnn->close();
/* } catch (\Throwable $th)
{
} */
// $this->log->logs("respuestaaa ",array($resultSet));
case 24:
case 25:
return $this->consulta_socket($con,$sql);
break;
default:
return $this->query_normal($con,$sql);
break;
}
}
}
if (empty($valor_u)) $valor_u = null;
if (empty($fechai)) $fechai = null;
if (empty($fechaf)) $fechaf = null;
$sql_ins = "INSERT INTO sem_ant_viat_reg_facturas (solicitud_id, nit, ticket_corr_id, tipo_gasto, ccostos, descripcion, tipo_soporte, url, fechai, fechaf, dias, cantidad, valor_u, total, tipo_fact, usuario_respuesta) VALUES ('$solicitud_id', '$nit', '$ticket_corr_id', '$tipo_gasto', '$ccostos', '$descripcion', '$tipo_soporte', '$base64', '$fechai', '$fechaf', $dias, $cantidad, $valor_u, '$total', '$tipo_fact', '$cc_jefe') RETURNING id";
$res_ins = $this->cnn->query('0', $sql_ins);
if (count($res_ins) <= 0)
{
$respuesta["info"] = $respuesta["message"] = "No se realizo el registro, intente nuevamente";
$response->headers->set('HTTP_AUTHENTICATION', $token_auth);
return $response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
} else {
$code = $exception->getCode();
$sqlState = null;
}
return new self($exception->getMessage(), $sqlState, $code, $exception);
}
}
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
}
$logger->startQuery($this->sql, $this->params, $this->types);
}
try {
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
} */
// $resultSet = $stmt->executeQuery();//execute();
/* try { */
// $resultSet_aux = $stmt->executeQuery();//execute();
// $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
$resultSet = $stmt->executeQuery()->fetchAllAssociative();
$this->cnn->close();
/* } catch (\Throwable $th)
{
} */
// $this->log->logs("respuestaaa ",array($resultSet));
case 24:
case 25:
return $this->consulta_socket($con,$sql);
break;
default:
return $this->query_normal($con,$sql);
break;
}
}
}
if (empty($valor_u)) $valor_u = null;
if (empty($fechai)) $fechai = null;
if (empty($fechaf)) $fechaf = null;
$sql_ins = "INSERT INTO sem_ant_viat_reg_facturas (solicitud_id, nit, ticket_corr_id, tipo_gasto, ccostos, descripcion, tipo_soporte, url, fechai, fechaf, dias, cantidad, valor_u, total, tipo_fact, usuario_respuesta) VALUES ('$solicitud_id', '$nit', '$ticket_corr_id', '$tipo_gasto', '$ccostos', '$descripcion', '$tipo_soporte', '$base64', '$fechai', '$fechaf', $dias, $cantidad, $valor_u, '$total', '$tipo_fact', '$cc_jefe') RETURNING id";
$res_ins = $this->cnn->query('0', $sql_ins);
if (count($res_ins) <= 0)
{
$respuesta["info"] = $respuesta["message"] = "No se realizo el registro, intente nuevamente";
$response->headers->set('HTTP_AUTHENTICATION', $token_auth);
return $response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
. ' Statement::bindParam() or Statement::bindValue() instead.',
);
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
. ' Statement::bindParam() or Statement::bindValue() instead.',
);
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
$logger->startQuery($this->sql, $this->params, $this->types);
}
try {
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
} */
// $resultSet = $stmt->executeQuery();//execute();
/* try { */
// $resultSet_aux = $stmt->executeQuery();//execute();
// $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
$resultSet = $stmt->executeQuery()->fetchAllAssociative();
$this->cnn->close();
/* } catch (\Throwable $th)
{
} */
// $this->log->logs("respuestaaa ",array($resultSet));
case 24:
case 25:
return $this->consulta_socket($con,$sql);
break;
default:
return $this->query_normal($con,$sql);
break;
}
}
}
if (empty($valor_u)) $valor_u = null;
if (empty($fechai)) $fechai = null;
if (empty($fechaf)) $fechaf = null;
$sql_ins = "INSERT INTO sem_ant_viat_reg_facturas (solicitud_id, nit, ticket_corr_id, tipo_gasto, ccostos, descripcion, tipo_soporte, url, fechai, fechaf, dias, cantidad, valor_u, total, tipo_fact, usuario_respuesta) VALUES ('$solicitud_id', '$nit', '$ticket_corr_id', '$tipo_gasto', '$ccostos', '$descripcion', '$tipo_soporte', '$base64', '$fechai', '$fechaf', $dias, $cantidad, $valor_u, '$total', '$tipo_fact', '$cc_jefe') RETURNING id";
$res_ins = $this->cnn->query('0', $sql_ins);
if (count($res_ins) <= 0)
{
$respuesta["info"] = $respuesta["message"] = "No se realizo el registro, intente nuevamente";
$response->headers->set('HTTP_AUTHENTICATION', $token_auth);
return $response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
No log messages
[3/3]
SyntaxErrorException
|
---|
Doctrine\DBAL\Exception\SyntaxErrorException: An exception occurred while executing a query: SQLSTATE[42601]: Syntax error: 7 ERROR: error de sintaxis en o cerca de «,» LINE 127: AP/Z', '27-02-2025', '28-02-2025', 2, , , '99500', '0', '173... ^ at vendor/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php:62 at Doctrine\DBAL\Driver\API\PostgreSQL\ExceptionConverter->convert() (vendor/doctrine/dbal/src/Connection.php:1908) at Doctrine\DBAL\Connection->handleDriverException() (vendor/doctrine/dbal/src/Connection.php:1851) at Doctrine\DBAL\Connection->convertExceptionDuringQuery() (vendor/doctrine/dbal/src/Statement.php:194) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:574) at App\Services\Conexion->query_normal() (src/Services/Conexion.php:533) at App\Services\Conexion->query() (src/Controller/PtatController.php:5927) at App\Controller\PtatController->metodos() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) 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:29) at require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
[2/3]
Exception
|
---|
Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[42601]: Syntax error: 7 ERROR: error de sintaxis en o cerca de «,» LINE 127: AP/Z', '27-02-2025', '28-02-2025', 2, , , '99500', '0', '173... ^ at vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28 at Doctrine\DBAL\Driver\PDO\Exception::new() (vendor/doctrine/dbal/src/Driver/PDO/Statement.php:136) at Doctrine\DBAL\Driver\PDO\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:190) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:574) at App\Services\Conexion->query_normal() (src/Services/Conexion.php:533) at App\Services\Conexion->query() (src/Controller/PtatController.php:5927) at App\Controller\PtatController->metodos() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) 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:29) at require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
[1/3]
PDOException
|
---|
PDOException: SQLSTATE[42601]: Syntax error: 7 ERROR: error de sintaxis en o cerca de «,» LINE 127: AP/Z', '27-02-2025', '28-02-2025', 2, , , '99500', '0', '173... ^ at vendor/doctrine/dbal/src/Driver/PDO/Statement.php:134 at PDOStatement->execute() (vendor/doctrine/dbal/src/Driver/PDO/Statement.php:134) at Doctrine\DBAL\Driver\PDO\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:190) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:574) at App\Services\Conexion->query_normal() (src/Services/Conexion.php:533) at App\Services\Conexion->query() (src/Controller/PtatController.php:5927) at App\Controller\PtatController->metodos() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) 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:29) at require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
// We have to match against the SQLSTATE in the error message in these cases.
if ($exception->getCode() === 7 && strpos($exception->getMessage(), 'SQLSTATE[08006]') !== false) {
return new ConnectionException($exception, $query);
}
return new DriverException($exception, $query);
}
}
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();
}
Driver\Exception $e,
string $sql,
array $params = [],
array $types = []
): DriverException {
return $this->handleDriverException($e, new Query($sql, $params, $types));
}
/** @internal */
final public function convertException(Driver\Exception $e): DriverException
{
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($logger !== null) {
$logger->stopQuery();
}
}
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
} */
// $resultSet = $stmt->executeQuery();//execute();
/* try { */
// $resultSet_aux = $stmt->executeQuery();//execute();
// $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
$resultSet = $stmt->executeQuery()->fetchAllAssociative();
$this->cnn->close();
/* } catch (\Throwable $th)
{
} */
// $this->log->logs("respuestaaa ",array($resultSet));
case 24:
case 25:
return $this->consulta_socket($con,$sql);
break;
default:
return $this->query_normal($con,$sql);
break;
}
}
}
if (empty($valor_u)) $valor_u = "null";
if (empty($fechai)) $fechai = "null";
if (empty($fechaf)) $fechaf = "null";
$sql_ins = "INSERT INTO sem_ant_viat_reg_facturas (solicitud_id, nit, ticket_corr_id, tipo_gasto, ccostos, descripcion, tipo_soporte, url, fechai, fechaf, dias, cantidad, valor_u, total, tipo_fact, usuario_respuesta) VALUES ('$solicitud_id', '$nit', '$ticket_corr_id', '$tipo_gasto', '$ccostos', '$descripcion', '$tipo_soporte', '$base64', '$fechai', '$fechaf', $dias, $cantidad, $valor_u, '$total', '$tipo_fact', '$cc_jefe') RETURNING id";
$res_ins = $this->cnn->query('0', $sql_ins);
if (count($res_ins) <= 0)
{
$respuesta["info"] = $respuesta["message"] = "No se realizo el registro, intente nuevamente";
$response->headers->set('HTTP_AUTHENTICATION', $token_auth);
return $response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
} else {
$code = $exception->getCode();
$sqlState = null;
}
return new self($exception->getMessage(), $sqlState, $code, $exception);
}
}
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
}
$logger->startQuery($this->sql, $this->params, $this->types);
}
try {
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
} */
// $resultSet = $stmt->executeQuery();//execute();
/* try { */
// $resultSet_aux = $stmt->executeQuery();//execute();
// $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
$resultSet = $stmt->executeQuery()->fetchAllAssociative();
$this->cnn->close();
/* } catch (\Throwable $th)
{
} */
// $this->log->logs("respuestaaa ",array($resultSet));
case 24:
case 25:
return $this->consulta_socket($con,$sql);
break;
default:
return $this->query_normal($con,$sql);
break;
}
}
}
if (empty($valor_u)) $valor_u = "null";
if (empty($fechai)) $fechai = "null";
if (empty($fechaf)) $fechaf = "null";
$sql_ins = "INSERT INTO sem_ant_viat_reg_facturas (solicitud_id, nit, ticket_corr_id, tipo_gasto, ccostos, descripcion, tipo_soporte, url, fechai, fechaf, dias, cantidad, valor_u, total, tipo_fact, usuario_respuesta) VALUES ('$solicitud_id', '$nit', '$ticket_corr_id', '$tipo_gasto', '$ccostos', '$descripcion', '$tipo_soporte', '$base64', '$fechai', '$fechaf', $dias, $cantidad, $valor_u, '$total', '$tipo_fact', '$cc_jefe') RETURNING id";
$res_ins = $this->cnn->query('0', $sql_ins);
if (count($res_ins) <= 0)
{
$respuesta["info"] = $respuesta["message"] = "No se realizo el registro, intente nuevamente";
$response->headers->set('HTTP_AUTHENTICATION', $token_auth);
return $response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
. ' Statement::bindParam() or Statement::bindValue() instead.',
);
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
. ' Statement::bindParam() or Statement::bindValue() instead.',
);
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
$logger->startQuery($this->sql, $this->params, $this->types);
}
try {
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
} */
// $resultSet = $stmt->executeQuery();//execute();
/* try { */
// $resultSet_aux = $stmt->executeQuery();//execute();
// $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
$resultSet = $stmt->executeQuery()->fetchAllAssociative();
$this->cnn->close();
/* } catch (\Throwable $th)
{
} */
// $this->log->logs("respuestaaa ",array($resultSet));
case 24:
case 25:
return $this->consulta_socket($con,$sql);
break;
default:
return $this->query_normal($con,$sql);
break;
}
}
}
if (empty($valor_u)) $valor_u = "null";
if (empty($fechai)) $fechai = "null";
if (empty($fechaf)) $fechaf = "null";
$sql_ins = "INSERT INTO sem_ant_viat_reg_facturas (solicitud_id, nit, ticket_corr_id, tipo_gasto, ccostos, descripcion, tipo_soporte, url, fechai, fechaf, dias, cantidad, valor_u, total, tipo_fact, usuario_respuesta) VALUES ('$solicitud_id', '$nit', '$ticket_corr_id', '$tipo_gasto', '$ccostos', '$descripcion', '$tipo_soporte', '$base64', '$fechai', '$fechaf', $dias, $cantidad, $valor_u, '$total', '$tipo_fact', '$cc_jefe') RETURNING id";
$res_ins = $this->cnn->query('0', $sql_ins);
if (count($res_ins) <= 0)
{
$respuesta["info"] = $respuesta["message"] = "No se realizo el registro, intente nuevamente";
$response->headers->set('HTTP_AUTHENTICATION', $token_auth);
return $response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
No log messages
[3/3]
DriverException
|
---|
Doctrine\DBAL\Exception\DriverException: An exception occurred while executing a query: SQLSTATE[22007]: Invalid datetime format: 7 ERROR: la sintaxis de entrada no es válida para tipo date: «null» LINE 130: AAAAAAAAAD//2Q==', 'null', 'null', null, 4, 20000, '80000', ... ^ at vendor/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php:87 at Doctrine\DBAL\Driver\API\PostgreSQL\ExceptionConverter->convert() (vendor/doctrine/dbal/src/Connection.php:1908) at Doctrine\DBAL\Connection->handleDriverException() (vendor/doctrine/dbal/src/Connection.php:1851) at Doctrine\DBAL\Connection->convertExceptionDuringQuery() (vendor/doctrine/dbal/src/Statement.php:194) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:574) at App\Services\Conexion->query_normal() (src/Services/Conexion.php:533) at App\Services\Conexion->query() (src/Controller/PtatController.php:5932) at App\Controller\PtatController->metodos() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) 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:29) at require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
[2/3]
Exception
|
---|
Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[22007]: Invalid datetime format: 7 ERROR: la sintaxis de entrada no es válida para tipo date: «null» LINE 130: AAAAAAAAAD//2Q==', 'null', 'null', null, 4, 20000, '80000', ... ^ at vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28 at Doctrine\DBAL\Driver\PDO\Exception::new() (vendor/doctrine/dbal/src/Driver/PDO/Statement.php:136) at Doctrine\DBAL\Driver\PDO\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:190) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:574) at App\Services\Conexion->query_normal() (src/Services/Conexion.php:533) at App\Services\Conexion->query() (src/Controller/PtatController.php:5932) at App\Controller\PtatController->metodos() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) 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:29) at require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
[1/3]
PDOException
|
---|
PDOException: SQLSTATE[22007]: Invalid datetime format: 7 ERROR: la sintaxis de entrada no es válida para tipo date: «null» LINE 130: AAAAAAAAAD//2Q==', 'null', 'null', null, 4, 20000, '80000', ... ^ at vendor/doctrine/dbal/src/Driver/PDO/Statement.php:134 at PDOStatement->execute() (vendor/doctrine/dbal/src/Driver/PDO/Statement.php:134) at Doctrine\DBAL\Driver\PDO\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:190) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:574) at App\Services\Conexion->query_normal() (src/Services/Conexion.php:533) at App\Services\Conexion->query() (src/Controller/PtatController.php:5932) at App\Controller\PtatController->metodos() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) 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:29) at require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
// We have to match against the SQLSTATE in the error message in these cases.
if ($exception->getCode() === 7 && strpos($exception->getMessage(), 'SQLSTATE[08006]') !== false) {
return new ConnectionException($exception, $query);
}
return new DriverException($exception, $query);
}
}
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();
}
Driver\Exception $e,
string $sql,
array $params = [],
array $types = []
): DriverException {
return $this->handleDriverException($e, new Query($sql, $params, $types));
}
/** @internal */
final public function convertException(Driver\Exception $e): DriverException
{
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($logger !== null) {
$logger->stopQuery();
}
}
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
} */
// $resultSet = $stmt->executeQuery();//execute();
/* try { */
// $resultSet_aux = $stmt->executeQuery();//execute();
// $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
$resultSet = $stmt->executeQuery()->fetchAllAssociative();
$this->cnn->close();
/* } catch (\Throwable $th)
{
} */
// $this->log->logs("respuestaaa ",array($resultSet));
case 24:
case 25:
return $this->consulta_socket($con,$sql);
break;
default:
return $this->query_normal($con,$sql);
break;
}
}
}
if (empty($valor_u)) $valor_u = "null";
if (empty($fechai)) $fechai = "null";
if (empty($fechaf)) $fechaf = "null";
$sql_ins = "INSERT INTO sem_ant_viat_reg_facturas (solicitud_id, nit, ticket_corr_id, tipo_gasto, ccostos, descripcion, tipo_soporte, url, fechai, fechaf, dias, cantidad, valor_u, total, tipo_fact, usuario_respuesta) VALUES ('$solicitud_id', '$nit', '$ticket_corr_id', '$tipo_gasto', '$ccostos', '$descripcion', '$tipo_soporte', '$base64', $fechai, $fechaf, $dias, $cantidad, $valor_u, '$total', '$tipo_fact', '$cc_jefe') RETURNING id";
$res_ins = $this->cnn->query('0', $sql_ins);
if (count($res_ins) <= 0)
{
$respuesta["info"] = $respuesta["message"] = "No se realizo el registro, intente nuevamente";
$response->headers->set('HTTP_AUTHENTICATION', $token_auth);
return $response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
} else {
$code = $exception->getCode();
$sqlState = null;
}
return new self($exception->getMessage(), $sqlState, $code, $exception);
}
}
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
}
$logger->startQuery($this->sql, $this->params, $this->types);
}
try {
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
} */
// $resultSet = $stmt->executeQuery();//execute();
/* try { */
// $resultSet_aux = $stmt->executeQuery();//execute();
// $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
$resultSet = $stmt->executeQuery()->fetchAllAssociative();
$this->cnn->close();
/* } catch (\Throwable $th)
{
} */
// $this->log->logs("respuestaaa ",array($resultSet));
case 24:
case 25:
return $this->consulta_socket($con,$sql);
break;
default:
return $this->query_normal($con,$sql);
break;
}
}
}
if (empty($valor_u)) $valor_u = "null";
if (empty($fechai)) $fechai = "null";
if (empty($fechaf)) $fechaf = "null";
$sql_ins = "INSERT INTO sem_ant_viat_reg_facturas (solicitud_id, nit, ticket_corr_id, tipo_gasto, ccostos, descripcion, tipo_soporte, url, fechai, fechaf, dias, cantidad, valor_u, total, tipo_fact, usuario_respuesta) VALUES ('$solicitud_id', '$nit', '$ticket_corr_id', '$tipo_gasto', '$ccostos', '$descripcion', '$tipo_soporte', '$base64', $fechai, $fechaf, $dias, $cantidad, $valor_u, '$total', '$tipo_fact', '$cc_jefe') RETURNING id";
$res_ins = $this->cnn->query('0', $sql_ins);
if (count($res_ins) <= 0)
{
$respuesta["info"] = $respuesta["message"] = "No se realizo el registro, intente nuevamente";
$response->headers->set('HTTP_AUTHENTICATION', $token_auth);
return $response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
. ' Statement::bindParam() or Statement::bindValue() instead.',
);
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
. ' Statement::bindParam() or Statement::bindValue() instead.',
);
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
$logger->startQuery($this->sql, $this->params, $this->types);
}
try {
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
} */
// $resultSet = $stmt->executeQuery();//execute();
/* try { */
// $resultSet_aux = $stmt->executeQuery();//execute();
// $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
$resultSet = $stmt->executeQuery()->fetchAllAssociative();
$this->cnn->close();
/* } catch (\Throwable $th)
{
} */
// $this->log->logs("respuestaaa ",array($resultSet));
case 24:
case 25:
return $this->consulta_socket($con,$sql);
break;
default:
return $this->query_normal($con,$sql);
break;
}
}
}
if (empty($valor_u)) $valor_u = "null";
if (empty($fechai)) $fechai = "null";
if (empty($fechaf)) $fechaf = "null";
$sql_ins = "INSERT INTO sem_ant_viat_reg_facturas (solicitud_id, nit, ticket_corr_id, tipo_gasto, ccostos, descripcion, tipo_soporte, url, fechai, fechaf, dias, cantidad, valor_u, total, tipo_fact, usuario_respuesta) VALUES ('$solicitud_id', '$nit', '$ticket_corr_id', '$tipo_gasto', '$ccostos', '$descripcion', '$tipo_soporte', '$base64', $fechai, $fechaf, $dias, $cantidad, $valor_u, '$total', '$tipo_fact', '$cc_jefe') RETURNING id";
$res_ins = $this->cnn->query('0', $sql_ins);
if (count($res_ins) <= 0)
{
$respuesta["info"] = $respuesta["message"] = "No se realizo el registro, intente nuevamente";
$response->headers->set('HTTP_AUTHENTICATION', $token_auth);
return $response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
No log messages
[3/3]
DriverException
|
---|
Doctrine\DBAL\Exception\DriverException: An exception occurred while executing a query: SQLSTATE[42804]: Datatype mismatch: 7 ERROR: la columna «fechai» es de tipo date pero la expresión es de tipo integer LINE 1: ...9', '1002', '3323', '1', '1089', 'wada', '0', '', 27-02-2025... ^ HINT: Necesitará reescribir la expresión o aplicarle una conversión de tipo. at vendor/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php:87 at Doctrine\DBAL\Driver\API\PostgreSQL\ExceptionConverter->convert() (vendor/doctrine/dbal/src/Connection.php:1908) at Doctrine\DBAL\Connection->handleDriverException() (vendor/doctrine/dbal/src/Connection.php:1851) at Doctrine\DBAL\Connection->convertExceptionDuringQuery() (vendor/doctrine/dbal/src/Statement.php:194) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:574) at App\Services\Conexion->query_normal() (src/Services/Conexion.php:533) at App\Services\Conexion->query() (src/Controller/PtatController.php:5932) at App\Controller\PtatController->metodos() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) 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:29) at require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
[2/3]
Exception
|
---|
Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[42804]: Datatype mismatch: 7 ERROR: la columna «fechai» es de tipo date pero la expresión es de tipo integer LINE 1: ...9', '1002', '3323', '1', '1089', 'wada', '0', '', 27-02-2025... ^ HINT: Necesitará reescribir la expresión o aplicarle una conversión de tipo. at vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28 at Doctrine\DBAL\Driver\PDO\Exception::new() (vendor/doctrine/dbal/src/Driver/PDO/Statement.php:136) at Doctrine\DBAL\Driver\PDO\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:190) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:574) at App\Services\Conexion->query_normal() (src/Services/Conexion.php:533) at App\Services\Conexion->query() (src/Controller/PtatController.php:5932) at App\Controller\PtatController->metodos() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) 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:29) at require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
[1/3]
PDOException
|
---|
PDOException: SQLSTATE[42804]: Datatype mismatch: 7 ERROR: la columna «fechai» es de tipo date pero la expresión es de tipo integer LINE 1: ...9', '1002', '3323', '1', '1089', 'wada', '0', '', 27-02-2025... ^ HINT: Necesitará reescribir la expresión o aplicarle una conversión de tipo. at vendor/doctrine/dbal/src/Driver/PDO/Statement.php:134 at PDOStatement->execute() (vendor/doctrine/dbal/src/Driver/PDO/Statement.php:134) at Doctrine\DBAL\Driver\PDO\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:190) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:574) at App\Services\Conexion->query_normal() (src/Services/Conexion.php:533) at App\Services\Conexion->query() (src/Controller/PtatController.php:5932) at App\Controller\PtatController->metodos() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) 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:29) at require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
// We have to match against the SQLSTATE in the error message in these cases.
if ($exception->getCode() === 7 && strpos($exception->getMessage(), 'SQLSTATE[08006]') !== false) {
return new ConnectionException($exception, $query);
}
return new DriverException($exception, $query);
}
}
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();
}
Driver\Exception $e,
string $sql,
array $params = [],
array $types = []
): DriverException {
return $this->handleDriverException($e, new Query($sql, $params, $types));
}
/** @internal */
final public function convertException(Driver\Exception $e): DriverException
{
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($logger !== null) {
$logger->stopQuery();
}
}
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
} */
// $resultSet = $stmt->executeQuery();//execute();
/* try { */
// $resultSet_aux = $stmt->executeQuery();//execute();
// $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
$resultSet = $stmt->executeQuery()->fetchAllAssociative();
$this->cnn->close();
/* } catch (\Throwable $th)
{
} */
// $this->log->logs("respuestaaa ",array($resultSet));
case 24:
case 25:
return $this->consulta_socket($con,$sql);
break;
default:
return $this->query_normal($con,$sql);
break;
}
}
}
if (empty($valor_u)) $valor_u = "null";
if (empty($fechai)) $fechai = "null"; else "'$fechai'";
if (empty($fechaf)) $fechaf = "null"; else "'$fechaf'";
$sql_ins = "INSERT INTO sem_ant_viat_reg_facturas (solicitud_id, nit, ticket_corr_id, tipo_gasto, ccostos, descripcion, tipo_soporte, url, fechai, fechaf, dias, cantidad, valor_u, total, tipo_fact, usuario_respuesta) VALUES ('$solicitud_id', '$nit', '$ticket_corr_id', '$tipo_gasto', '$ccostos', '$descripcion', '$tipo_soporte', '$base64', $fechai, $fechaf, $dias, $cantidad, $valor_u, '$total', '$tipo_fact', '$cc_jefe') RETURNING id";
$res_ins = $this->cnn->query('0', $sql_ins);
if (count($res_ins) <= 0)
{
$respuesta["info"] = $respuesta["message"] = "No se realizo el registro, intente nuevamente";
$response->headers->set('HTTP_AUTHENTICATION', $token_auth);
return $response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
} else {
$code = $exception->getCode();
$sqlState = null;
}
return new self($exception->getMessage(), $sqlState, $code, $exception);
}
}
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
}
$logger->startQuery($this->sql, $this->params, $this->types);
}
try {
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
} */
// $resultSet = $stmt->executeQuery();//execute();
/* try { */
// $resultSet_aux = $stmt->executeQuery();//execute();
// $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
$resultSet = $stmt->executeQuery()->fetchAllAssociative();
$this->cnn->close();
/* } catch (\Throwable $th)
{
} */
// $this->log->logs("respuestaaa ",array($resultSet));
case 24:
case 25:
return $this->consulta_socket($con,$sql);
break;
default:
return $this->query_normal($con,$sql);
break;
}
}
}
if (empty($valor_u)) $valor_u = "null";
if (empty($fechai)) $fechai = "null"; else "'$fechai'";
if (empty($fechaf)) $fechaf = "null"; else "'$fechaf'";
$sql_ins = "INSERT INTO sem_ant_viat_reg_facturas (solicitud_id, nit, ticket_corr_id, tipo_gasto, ccostos, descripcion, tipo_soporte, url, fechai, fechaf, dias, cantidad, valor_u, total, tipo_fact, usuario_respuesta) VALUES ('$solicitud_id', '$nit', '$ticket_corr_id', '$tipo_gasto', '$ccostos', '$descripcion', '$tipo_soporte', '$base64', $fechai, $fechaf, $dias, $cantidad, $valor_u, '$total', '$tipo_fact', '$cc_jefe') RETURNING id";
$res_ins = $this->cnn->query('0', $sql_ins);
if (count($res_ins) <= 0)
{
$respuesta["info"] = $respuesta["message"] = "No se realizo el registro, intente nuevamente";
$response->headers->set('HTTP_AUTHENTICATION', $token_auth);
return $response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
. ' Statement::bindParam() or Statement::bindValue() instead.',
);
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
. ' Statement::bindParam() or Statement::bindValue() instead.',
);
}
try {
$this->stmt->execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Result($this->stmt);
$logger->startQuery($this->sql, $this->params, $this->types);
}
try {
return new Result(
$this->stmt->execute($params),
$this->conn,
);
} catch (Driver\Exception $ex) {
throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
} finally {
if ($params === []) {
$params = null; // Workaround as long execute() exists and used internally.
}
return $this->execute($params);
}
/**
* Executes the statement with the currently bound parameters and return affected rows.
*
} */
// $resultSet = $stmt->executeQuery();//execute();
/* try { */
// $resultSet_aux = $stmt->executeQuery();//execute();
// $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
$resultSet = $stmt->executeQuery()->fetchAllAssociative();
$this->cnn->close();
/* } catch (\Throwable $th)
{
} */
// $this->log->logs("respuestaaa ",array($resultSet));
case 24:
case 25:
return $this->consulta_socket($con,$sql);
break;
default:
return $this->query_normal($con,$sql);
break;
}
}
}
if (empty($valor_u)) $valor_u = "null";
if (empty($fechai)) $fechai = "null"; else "'$fechai'";
if (empty($fechaf)) $fechaf = "null"; else "'$fechaf'";
$sql_ins = "INSERT INTO sem_ant_viat_reg_facturas (solicitud_id, nit, ticket_corr_id, tipo_gasto, ccostos, descripcion, tipo_soporte, url, fechai, fechaf, dias, cantidad, valor_u, total, tipo_fact, usuario_respuesta) VALUES ('$solicitud_id', '$nit', '$ticket_corr_id', '$tipo_gasto', '$ccostos', '$descripcion', '$tipo_soporte', '$base64', $fechai, $fechaf, $dias, $cantidad, $valor_u, '$total', '$tipo_fact', '$cc_jefe') RETURNING id";
$res_ins = $this->cnn->query('0', $sql_ins);
if (count($res_ins) <= 0)
{
$respuesta["info"] = $respuesta["message"] = "No se realizo el registro, intente nuevamente";
$response->headers->set('HTTP_AUTHENTICATION', $token_auth);
return $response->setContent(json_encode($respuesta));
$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, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$method = $_SERVER['REQUEST_METHOD'];
if($method == "OPTIONS") {
die();
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
No log messages
[3/3]
DriverException
|
---|
Doctrine\DBAL\Exception\DriverException: An exception occurred while executing a query: SQLSTATE[42804]: Datatype mismatch: 7 ERROR: la columna «fechai» es de tipo date pero la expresión es de tipo integer LINE 1: ...'17', '1', '4343', '1', '1091', 'reara', '0', '', 28-02-2025... ^ HINT: Necesitará reescribir la expresión o aplicarle una conversión de tipo. at vendor/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php:87 at Doctrine\DBAL\Driver\API\PostgreSQL\ExceptionConverter->convert() (vendor/doctrine/dbal/src/Connection.php:1908) at Doctrine\DBAL\Connection->handleDriverException() (vendor/doctrine/dbal/src/Connection.php:1851) at Doctrine\DBAL\Connection->convertExceptionDuringQuery() (vendor/doctrine/dbal/src/Statement.php:194) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:574) at App\Services\Conexion->query_normal() (src/Services/Conexion.php:533) at App\Services\Conexion->query() (src/Controller/PtatController.php:5932) at App\Controller\PtatController->metodos() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) 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:29) at require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
[2/3]
Exception
|
---|
Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[42804]: Datatype mismatch: 7 ERROR: la columna «fechai» es de tipo date pero la expresión es de tipo integer LINE 1: ...'17', '1', '4343', '1', '1091', 'reara', '0', '', 28-02-2025... ^ HINT: Necesitará reescribir la expresión o aplicarle una conversión de tipo. at vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28 at Doctrine\DBAL\Driver\PDO\Exception::new() (vendor/doctrine/dbal/src/Driver/PDO/Statement.php:136) at Doctrine\DBAL\Driver\PDO\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:190) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:574) at App\Services\Conexion->query_normal() (src/Services/Conexion.php:533) at App\Services\Conexion->query() (src/Controller/PtatController.php:5932) at App\Controller\PtatController->metodos() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) 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:29) at require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |
[1/3]
PDOException
|
---|
PDOException: SQLSTATE[42804]: Datatype mismatch: 7 ERROR: la columna «fechai» es de tipo date pero la expresión es de tipo integer LINE 1: ...'17', '1', '4343', '1', '1091', 'reara', '0', '', 28-02-2025... ^ HINT: Necesitará reescribir la expresión o aplicarle una conversión de tipo. at vendor/doctrine/dbal/src/Driver/PDO/Statement.php:134 at PDOStatement->execute() (vendor/doctrine/dbal/src/Driver/PDO/Statement.php:134) at Doctrine\DBAL\Driver\PDO\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:190) at Doctrine\DBAL\Statement->execute() (vendor/doctrine/dbal/src/Statement.php:224) at Doctrine\DBAL\Statement->executeQuery() (src/Services/Conexion.php:574) at App\Services\Conexion->query_normal() (src/Services/Conexion.php:533) at App\Services\Conexion->query() (src/Controller/PtatController.php:5932) at App\Controller\PtatController->metodos() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:184) 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:29) at require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') (public/index.php:16) |