24 11 2026 00:05:28 El Archivo 2026-11-24 - log_error.txt se ha creado ************************************************************ -- -- MM-Error en Metodos Sem: http\Exception\RuntimeException: http\Client::send(): Timeout was reached; Connection timed out after 3003 milliseconds (http://10.231.0.134:8094/ptat/metodos/metodos) in /var/www/html/serversoap/ptat_pruebas/metodos.php:72 Stack trace: #0 /var/www/html/serversoap/ptat_pruebas/metodos.php(72): http\Client->send() #1 {main} 24 11 2026 04:34:30 ************************************************************ -- -- MM-Error en Metodos Sem: http\Exception\RuntimeException: http\Client::send(): Timeout was reached; Connection timed out after 3003 milliseconds (http://10.231.0.134:8094/ptat/metodos/metodos) in /var/www/html/serversoap/ptat_pruebas/metodos.php:72 Stack trace: #0 /var/www/html/serversoap/ptat_pruebas/metodos.php(72): http\Client->send() #1 {main} 24 11 2026 06:48:26 ************************************************************ -- -- MM-Error en Metodos Sem: http\Exception\RuntimeException: http\Client::send(): Timeout was reached; Connection timed out after 3003 milliseconds (http://10.231.0.134:8094/ptat/metodos/metodos) in /var/www/html/serversoap/ptat_pruebas/metodos.php:72 Stack trace: #0 /var/www/html/serversoap/ptat_pruebas/metodos.php(72): http\Client->send() #1 {main} 24 11 2026 06:48:29 ************************************************************ -- -- MM-Error en Metodos Sem: http\Exception\RuntimeException: http\Client::send(): Timeout was reached; Connection timed out after 3003 milliseconds (http://10.231.0.134:8094/ptat/metodos/metodos) in /var/www/html/serversoap/ptat_pruebas/metodos.php:72 Stack trace: #0 /var/www/html/serversoap/ptat_pruebas/metodos.php(72): http\Client->send() #1 {main} 24 11 2026 06:48:51 ************************************************************ -- LM-ERROR: HTTP/1.1 500 Internal Server Error Date: Tue, 24 Nov 2026 11:48: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%20in%20the%20driver%3A%20SQLSTATE%5B08006%5D%20%5B7%5D%20connection%20to%20server%20at%20%2210.231.0.132%22%2C%20port%205432%20failed%3A%20timeout%20expired X-Debug-Exception-File: %2Fwww%2Fphp81%2Fserversoap%2Frecaudos%2Fvendor%2Fdoctrine%2Fdbal%2Fsrc%2FDriver%2FAPI%2FPostgreSQL%2FExceptionConverter.php:77 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: 299116 An exception occurred in the driver: SQLSTATE[08006] [7] connection to server at "10.231.0.132", port 5432 failed: timeout expired (500 Internal Server Error)

Symfony Exception

PDOException Exception ConnectionException

HTTP 500 Internal Server Error

An exception occurred in the driver: SQLSTATE[08006] [7] connection to server at "10.231.0.132", port 5432 failed: timeout expired

Exceptions 3

Doctrine\DBAL\Exception\ ConnectionException

  1.             case '42P07':
  2.                 return new TableExistsException($exception, $query);
  3.             case '08006':
  4.                 return new ConnectionException($exception, $query);
  5.         }
  6.         // Prior to fixing https://bugs.php.net/bug.php?id=64705 (PHP 7.4.10),
  7.         // in some cases (mainly connection errors) the PDO exception wouldn't provide a SQLSTATE via its code.
  8.         // We have to match against the SQLSTATE in the error message in these cases.
  1.     private function handleDriverException(
  2.         Driver\Exception $driverException,
  3.         ?Query $query
  4.     ): DriverException {
  5.         $this->exceptionConverter ??= $this->_driver->getExceptionConverter();
  6.         $exception                  = $this->exceptionConverter->convert($driverException, $query);
  7.         if ($exception instanceof ConnectionLost) {
  8.             $this->close();
  9.         }
in vendor/doctrine/dbal/src/Connection.php -> handleDriverException (line 1857)
  1.     }
  2.     /** @internal */
  3.     final public function convertException(Driver\Exception $e): DriverException
  4.     {
  5.         return $this->handleDriverException($e, null);
  6.     }
  7.     /**
  8.      * @param array<int, mixed>|array<string, mixed>                               $params
  9.      * @param array<int, int|string|Type|null>|array<string, int|string|Type|null> $types
in vendor/doctrine/dbal/src/Connection.php -> convertException (line 348)
  1.         }
  2.         try {
  3.             $this->_conn = $this->_driver->connect($this->params);
  4.         } catch (Driver\Exception $e) {
  5.             throw $this->convertException($e);
  6.         }
  7.         if ($this->autoCommit === false) {
  8.             $this->beginTransaction();
  9.         }
  1.             'https://github.com/doctrine/dbal/issues/4966',
  2.             'Connection::getWrappedConnection() is deprecated.'
  3.                 . ' Use Connection::getNativeConnection() to access the native connection.',
  4.         );
  5.         $this->connect();
  6.         assert($this->_conn !== null);
  7.         return $this->_conn;
  8.     }
in vendor/doctrine/dbal/src/Connection.php -> getWrappedConnection (line 1013)
  1.      *
  2.      * @throws Exception
  3.      */
  4.     public function prepare(string $sql): Statement
  5.     {
  6.         $connection = $this->getWrappedConnection();
  7.         try {
  8.             $statement = $connection->prepare($sql);
  9.         } catch (Driver\Exception $e) {
  10.             throw $this->convertExceptionDuringQuery($e, $sql);
Connection->prepare() in src/Services/Conexion.php (line 765)
  1.       );
  2.       //$cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
  3.       // $this->log->logs("Inicio ejecucion sql0");
  4.       $this->cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
  5.       //$sql = "SELECT * FROM articles";
  6.       $stmt = $this->cnn->prepare($sql);
  7.       /* switch ($con)
  8.       {
  9.         case 6:
  10.           case 5:
  11.             $resultSet = $stmt->executeQuery();
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 2998)
  1.     $name_device = (!empty($params[0]->name_device)) ? $params[0]->name_device : null;
  2.     $operador = (!empty($params[0]->operador)) ? $params[0]->operador : null;
  3.     $version_app = (!empty($params[0]->version_app)) ? $params[0]->version_app : null;
  4.     $sql_man = "SELECT version,estado_modulos FROM sem_versiones sv2 WHERE id = (SELECT max(id) FROM sem_versiones sv WHERE estado = 0)";
  5.     $res_man = $this->cnn->query('0', $sql_man);
  6.     if (count($res_man) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se encontro ninguna version de SEM";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[08006] [7] connection to server at "10.231.0.132", port 5432 failed: timeout expired

  1.         } else {
  2.             $code     = $exception->getCode();
  3.             $sqlState = null;
  4.         }
  5.         return new self($exception->getMessage(), $sqlState, $code, $exception);
  6.     }
  7. }
  1.                 $params['user'] ?? '',
  2.                 $params['password'] ?? '',
  3.                 $driverOptions,
  4.             );
  5.         } catch (PDOException $exception) {
  6.             throw Exception::new($exception);
  7.         }
  8.         if (
  9.             ! isset($driverOptions[PDO::PGSQL_ATTR_DISABLE_PREPARES])
  10.             || $driverOptions[PDO::PGSQL_ATTR_DISABLE_PREPARES] === true
  1.         if ($this->_conn !== null) {
  2.             return false;
  3.         }
  4.         try {
  5.             $this->_conn = $this->_driver->connect($this->params);
  6.         } catch (Driver\Exception $e) {
  7.             throw $this->convertException($e);
  8.         }
  9.         if ($this->autoCommit === false) {
  1.             'https://github.com/doctrine/dbal/issues/4966',
  2.             'Connection::getWrappedConnection() is deprecated.'
  3.                 . ' Use Connection::getNativeConnection() to access the native connection.',
  4.         );
  5.         $this->connect();
  6.         assert($this->_conn !== null);
  7.         return $this->_conn;
  8.     }
in vendor/doctrine/dbal/src/Connection.php -> getWrappedConnection (line 1013)
  1.      *
  2.      * @throws Exception
  3.      */
  4.     public function prepare(string $sql): Statement
  5.     {
  6.         $connection = $this->getWrappedConnection();
  7.         try {
  8.             $statement = $connection->prepare($sql);
  9.         } catch (Driver\Exception $e) {
  10.             throw $this->convertExceptionDuringQuery($e, $sql);
Connection->prepare() in src/Services/Conexion.php (line 765)
  1.       );
  2.       //$cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
  3.       // $this->log->logs("Inicio ejecucion sql0");
  4.       $this->cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
  5.       //$sql = "SELECT * FROM articles";
  6.       $stmt = $this->cnn->prepare($sql);
  7.       /* switch ($con)
  8.       {
  9.         case 6:
  10.           case 5:
  11.             $resultSet = $stmt->executeQuery();
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 2998)
  1.     $name_device = (!empty($params[0]->name_device)) ? $params[0]->name_device : null;
  2.     $operador = (!empty($params[0]->operador)) ? $params[0]->operador : null;
  3.     $version_app = (!empty($params[0]->version_app)) ? $params[0]->version_app : null;
  4.     $sql_man = "SELECT version,estado_modulos FROM sem_versiones sv2 WHERE id = (SELECT max(id) FROM sem_versiones sv WHERE estado = 0)";
  5.     $res_man = $this->cnn->query('0', $sql_man);
  6.     if (count($res_man) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se encontro ninguna version de SEM";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

PDOException

SQLSTATE[08006] [7] connection to server at "10.231.0.132", port 5432 failed: timeout expired

  1.             $driverOptions[PDO::ATTR_PERSISTENT] = true;
  2.         }
  3.         try {
  4.             $pdo = new PDO(
  5.                 $this->constructPdoDsn($params),
  6.                 $params['user'] ?? '',
  7.                 $params['password'] ?? '',
  8.                 $driverOptions,
  9.             );
  10.         } catch (PDOException $exception) {
  1.             $driverOptions[PDO::ATTR_PERSISTENT] = true;
  2.         }
  3.         try {
  4.             $pdo = new PDO(
  5.                 $this->constructPdoDsn($params),
  6.                 $params['user'] ?? '',
  7.                 $params['password'] ?? '',
  8.                 $driverOptions,
  9.             );
  10.         } catch (PDOException $exception) {
  1.         if ($this->_conn !== null) {
  2.             return false;
  3.         }
  4.         try {
  5.             $this->_conn = $this->_driver->connect($this->params);
  6.         } catch (Driver\Exception $e) {
  7.             throw $this->convertException($e);
  8.         }
  9.         if ($this->autoCommit === false) {
  1.             'https://github.com/doctrine/dbal/issues/4966',
  2.             'Connection::getWrappedConnection() is deprecated.'
  3.                 . ' Use Connection::getNativeConnection() to access the native connection.',
  4.         );
  5.         $this->connect();
  6.         assert($this->_conn !== null);
  7.         return $this->_conn;
  8.     }
in vendor/doctrine/dbal/src/Connection.php -> getWrappedConnection (line 1013)
  1.      *
  2.      * @throws Exception
  3.      */
  4.     public function prepare(string $sql): Statement
  5.     {
  6.         $connection = $this->getWrappedConnection();
  7.         try {
  8.             $statement = $connection->prepare($sql);
  9.         } catch (Driver\Exception $e) {
  10.             throw $this->convertExceptionDuringQuery($e, $sql);
Connection->prepare() in src/Services/Conexion.php (line 765)
  1.       );
  2.       //$cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
  3.       // $this->log->logs("Inicio ejecucion sql0");
  4.       $this->cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
  5.       //$sql = "SELECT * FROM articles";
  6.       $stmt = $this->cnn->prepare($sql);
  7.       /* switch ($con)
  8.       {
  9.         case 6:
  10.           case 5:
  11.             $resultSet = $stmt->executeQuery();
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 2998)
  1.     $name_device = (!empty($params[0]->name_device)) ? $params[0]->name_device : null;
  2.     $operador = (!empty($params[0]->operador)) ? $params[0]->operador : null;
  3.     $version_app = (!empty($params[0]->version_app)) ? $params[0]->version_app : null;
  4.     $sql_man = "SELECT version,estado_modulos FROM sem_versiones sv2 WHERE id = (SELECT max(id) FROM sem_versiones sv WHERE estado = 0)";
  5.     $res_man = $this->cnn->query('0', $sql_man);
  6.     if (count($res_man) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se encontro ninguna version de SEM";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Logs

No log messages

Stack Traces 3

[3/3] ConnectionException
Doctrine\DBAL\Exception\ConnectionException:
An exception occurred in the driver: SQLSTATE[08006] [7] connection to server at "10.231.0.132", port 5432 failed: timeout expired

  at vendor/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php:77
  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:1857)
  at Doctrine\DBAL\Connection->convertException()
     (vendor/doctrine/dbal/src/Connection.php:348)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/src/Connection.php:1619)
  at Doctrine\DBAL\Connection->getWrappedConnection()
     (vendor/doctrine/dbal/src/Connection.php:1013)
  at Doctrine\DBAL\Connection->prepare()
     (src/Services/Conexion.php:765)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:2998)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
[2/3] Exception
Doctrine\DBAL\Driver\PDO\Exception:
SQLSTATE[08006] [7] connection to server at "10.231.0.132", port 5432 failed: timeout expired

  at vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28
  at Doctrine\DBAL\Driver\PDO\Exception::new()
     (vendor/doctrine/dbal/src/Driver/PDO/PgSQL/Driver.php:35)
  at Doctrine\DBAL\Driver\PDO\PgSQL\Driver->connect()
     (vendor/doctrine/dbal/src/Connection.php:346)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/src/Connection.php:1619)
  at Doctrine\DBAL\Connection->getWrappedConnection()
     (vendor/doctrine/dbal/src/Connection.php:1013)
  at Doctrine\DBAL\Connection->prepare()
     (src/Services/Conexion.php:765)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:2998)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
[1/3] PDOException
PDOException:
SQLSTATE[08006] [7] connection to server at "10.231.0.132", port 5432 failed: timeout expired

  at vendor/doctrine/dbal/src/Driver/PDO/PgSQL/Driver.php:29
  at PDO->__construct()
     (vendor/doctrine/dbal/src/Driver/PDO/PgSQL/Driver.php:29)
  at Doctrine\DBAL\Driver\PDO\PgSQL\Driver->connect()
     (vendor/doctrine/dbal/src/Connection.php:346)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/src/Connection.php:1619)
  at Doctrine\DBAL\Connection->getWrappedConnection()
     (vendor/doctrine/dbal/src/Connection.php:1013)
  at Doctrine\DBAL\Connection->prepare()
     (src/Services/Conexion.php:765)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:2998)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
24 11 2026 06:48:54 ************************************************************ -- LM-ERROR: HTTP/1.1 500 Internal Server Error Date: Tue, 24 Nov 2026 11:48:54 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%20in%20the%20driver%3A%20SQLSTATE%5B08006%5D%20%5B7%5D%20connection%20to%20server%20at%20%2210.231.0.132%22%2C%20port%205432%20failed%3A%20timeout%20expired X-Debug-Exception-File: %2Fwww%2Fphp81%2Fserversoap%2Frecaudos%2Fvendor%2Fdoctrine%2Fdbal%2Fsrc%2FDriver%2FAPI%2FPostgreSQL%2FExceptionConverter.php:77 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: 299116 An exception occurred in the driver: SQLSTATE[08006] [7] connection to server at "10.231.0.132", port 5432 failed: timeout expired (500 Internal Server Error)

Symfony Exception

PDOException Exception ConnectionException

HTTP 500 Internal Server Error

An exception occurred in the driver: SQLSTATE[08006] [7] connection to server at "10.231.0.132", port 5432 failed: timeout expired

Exceptions 3

Doctrine\DBAL\Exception\ ConnectionException

  1.             case '42P07':
  2.                 return new TableExistsException($exception, $query);
  3.             case '08006':
  4.                 return new ConnectionException($exception, $query);
  5.         }
  6.         // Prior to fixing https://bugs.php.net/bug.php?id=64705 (PHP 7.4.10),
  7.         // in some cases (mainly connection errors) the PDO exception wouldn't provide a SQLSTATE via its code.
  8.         // We have to match against the SQLSTATE in the error message in these cases.
  1.     private function handleDriverException(
  2.         Driver\Exception $driverException,
  3.         ?Query $query
  4.     ): DriverException {
  5.         $this->exceptionConverter ??= $this->_driver->getExceptionConverter();
  6.         $exception                  = $this->exceptionConverter->convert($driverException, $query);
  7.         if ($exception instanceof ConnectionLost) {
  8.             $this->close();
  9.         }
in vendor/doctrine/dbal/src/Connection.php -> handleDriverException (line 1857)
  1.     }
  2.     /** @internal */
  3.     final public function convertException(Driver\Exception $e): DriverException
  4.     {
  5.         return $this->handleDriverException($e, null);
  6.     }
  7.     /**
  8.      * @param array<int, mixed>|array<string, mixed>                               $params
  9.      * @param array<int, int|string|Type|null>|array<string, int|string|Type|null> $types
in vendor/doctrine/dbal/src/Connection.php -> convertException (line 348)
  1.         }
  2.         try {
  3.             $this->_conn = $this->_driver->connect($this->params);
  4.         } catch (Driver\Exception $e) {
  5.             throw $this->convertException($e);
  6.         }
  7.         if ($this->autoCommit === false) {
  8.             $this->beginTransaction();
  9.         }
  1.             'https://github.com/doctrine/dbal/issues/4966',
  2.             'Connection::getWrappedConnection() is deprecated.'
  3.                 . ' Use Connection::getNativeConnection() to access the native connection.',
  4.         );
  5.         $this->connect();
  6.         assert($this->_conn !== null);
  7.         return $this->_conn;
  8.     }
in vendor/doctrine/dbal/src/Connection.php -> getWrappedConnection (line 1013)
  1.      *
  2.      * @throws Exception
  3.      */
  4.     public function prepare(string $sql): Statement
  5.     {
  6.         $connection = $this->getWrappedConnection();
  7.         try {
  8.             $statement = $connection->prepare($sql);
  9.         } catch (Driver\Exception $e) {
  10.             throw $this->convertExceptionDuringQuery($e, $sql);
Connection->prepare() in src/Services/Conexion.php (line 765)
  1.       );
  2.       //$cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
  3.       // $this->log->logs("Inicio ejecucion sql0");
  4.       $this->cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
  5.       //$sql = "SELECT * FROM articles";
  6.       $stmt = $this->cnn->prepare($sql);
  7.       /* switch ($con)
  8.       {
  9.         case 6:
  10.           case 5:
  11.             $resultSet = $stmt->executeQuery();
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 2998)
  1.     $name_device = (!empty($params[0]->name_device)) ? $params[0]->name_device : null;
  2.     $operador = (!empty($params[0]->operador)) ? $params[0]->operador : null;
  3.     $version_app = (!empty($params[0]->version_app)) ? $params[0]->version_app : null;
  4.     $sql_man = "SELECT version,estado_modulos FROM sem_versiones sv2 WHERE id = (SELECT max(id) FROM sem_versiones sv WHERE estado = 0)";
  5.     $res_man = $this->cnn->query('0', $sql_man);
  6.     if (count($res_man) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se encontro ninguna version de SEM";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[08006] [7] connection to server at "10.231.0.132", port 5432 failed: timeout expired

  1.         } else {
  2.             $code     = $exception->getCode();
  3.             $sqlState = null;
  4.         }
  5.         return new self($exception->getMessage(), $sqlState, $code, $exception);
  6.     }
  7. }
  1.                 $params['user'] ?? '',
  2.                 $params['password'] ?? '',
  3.                 $driverOptions,
  4.             );
  5.         } catch (PDOException $exception) {
  6.             throw Exception::new($exception);
  7.         }
  8.         if (
  9.             ! isset($driverOptions[PDO::PGSQL_ATTR_DISABLE_PREPARES])
  10.             || $driverOptions[PDO::PGSQL_ATTR_DISABLE_PREPARES] === true
  1.         if ($this->_conn !== null) {
  2.             return false;
  3.         }
  4.         try {
  5.             $this->_conn = $this->_driver->connect($this->params);
  6.         } catch (Driver\Exception $e) {
  7.             throw $this->convertException($e);
  8.         }
  9.         if ($this->autoCommit === false) {
  1.             'https://github.com/doctrine/dbal/issues/4966',
  2.             'Connection::getWrappedConnection() is deprecated.'
  3.                 . ' Use Connection::getNativeConnection() to access the native connection.',
  4.         );
  5.         $this->connect();
  6.         assert($this->_conn !== null);
  7.         return $this->_conn;
  8.     }
in vendor/doctrine/dbal/src/Connection.php -> getWrappedConnection (line 1013)
  1.      *
  2.      * @throws Exception
  3.      */
  4.     public function prepare(string $sql): Statement
  5.     {
  6.         $connection = $this->getWrappedConnection();
  7.         try {
  8.             $statement = $connection->prepare($sql);
  9.         } catch (Driver\Exception $e) {
  10.             throw $this->convertExceptionDuringQuery($e, $sql);
Connection->prepare() in src/Services/Conexion.php (line 765)
  1.       );
  2.       //$cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
  3.       // $this->log->logs("Inicio ejecucion sql0");
  4.       $this->cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
  5.       //$sql = "SELECT * FROM articles";
  6.       $stmt = $this->cnn->prepare($sql);
  7.       /* switch ($con)
  8.       {
  9.         case 6:
  10.           case 5:
  11.             $resultSet = $stmt->executeQuery();
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 2998)
  1.     $name_device = (!empty($params[0]->name_device)) ? $params[0]->name_device : null;
  2.     $operador = (!empty($params[0]->operador)) ? $params[0]->operador : null;
  3.     $version_app = (!empty($params[0]->version_app)) ? $params[0]->version_app : null;
  4.     $sql_man = "SELECT version,estado_modulos FROM sem_versiones sv2 WHERE id = (SELECT max(id) FROM sem_versiones sv WHERE estado = 0)";
  5.     $res_man = $this->cnn->query('0', $sql_man);
  6.     if (count($res_man) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se encontro ninguna version de SEM";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

PDOException

SQLSTATE[08006] [7] connection to server at "10.231.0.132", port 5432 failed: timeout expired

  1.             $driverOptions[PDO::ATTR_PERSISTENT] = true;
  2.         }
  3.         try {
  4.             $pdo = new PDO(
  5.                 $this->constructPdoDsn($params),
  6.                 $params['user'] ?? '',
  7.                 $params['password'] ?? '',
  8.                 $driverOptions,
  9.             );
  10.         } catch (PDOException $exception) {
  1.             $driverOptions[PDO::ATTR_PERSISTENT] = true;
  2.         }
  3.         try {
  4.             $pdo = new PDO(
  5.                 $this->constructPdoDsn($params),
  6.                 $params['user'] ?? '',
  7.                 $params['password'] ?? '',
  8.                 $driverOptions,
  9.             );
  10.         } catch (PDOException $exception) {
  1.         if ($this->_conn !== null) {
  2.             return false;
  3.         }
  4.         try {
  5.             $this->_conn = $this->_driver->connect($this->params);
  6.         } catch (Driver\Exception $e) {
  7.             throw $this->convertException($e);
  8.         }
  9.         if ($this->autoCommit === false) {
  1.             'https://github.com/doctrine/dbal/issues/4966',
  2.             'Connection::getWrappedConnection() is deprecated.'
  3.                 . ' Use Connection::getNativeConnection() to access the native connection.',
  4.         );
  5.         $this->connect();
  6.         assert($this->_conn !== null);
  7.         return $this->_conn;
  8.     }
in vendor/doctrine/dbal/src/Connection.php -> getWrappedConnection (line 1013)
  1.      *
  2.      * @throws Exception
  3.      */
  4.     public function prepare(string $sql): Statement
  5.     {
  6.         $connection = $this->getWrappedConnection();
  7.         try {
  8.             $statement = $connection->prepare($sql);
  9.         } catch (Driver\Exception $e) {
  10.             throw $this->convertExceptionDuringQuery($e, $sql);
Connection->prepare() in src/Services/Conexion.php (line 765)
  1.       );
  2.       //$cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
  3.       // $this->log->logs("Inicio ejecucion sql0");
  4.       $this->cnn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
  5.       //$sql = "SELECT * FROM articles";
  6.       $stmt = $this->cnn->prepare($sql);
  7.       /* switch ($con)
  8.       {
  9.         case 6:
  10.           case 5:
  11.             $resultSet = $stmt->executeQuery();
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 2998)
  1.     $name_device = (!empty($params[0]->name_device)) ? $params[0]->name_device : null;
  2.     $operador = (!empty($params[0]->operador)) ? $params[0]->operador : null;
  3.     $version_app = (!empty($params[0]->version_app)) ? $params[0]->version_app : null;
  4.     $sql_man = "SELECT version,estado_modulos FROM sem_versiones sv2 WHERE id = (SELECT max(id) FROM sem_versiones sv WHERE estado = 0)";
  5.     $res_man = $this->cnn->query('0', $sql_man);
  6.     if (count($res_man) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se encontro ninguna version de SEM";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Logs

No log messages

Stack Traces 3

[3/3] ConnectionException
Doctrine\DBAL\Exception\ConnectionException:
An exception occurred in the driver: SQLSTATE[08006] [7] connection to server at "10.231.0.132", port 5432 failed: timeout expired

  at vendor/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php:77
  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:1857)
  at Doctrine\DBAL\Connection->convertException()
     (vendor/doctrine/dbal/src/Connection.php:348)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/src/Connection.php:1619)
  at Doctrine\DBAL\Connection->getWrappedConnection()
     (vendor/doctrine/dbal/src/Connection.php:1013)
  at Doctrine\DBAL\Connection->prepare()
     (src/Services/Conexion.php:765)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:2998)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
[2/3] Exception
Doctrine\DBAL\Driver\PDO\Exception:
SQLSTATE[08006] [7] connection to server at "10.231.0.132", port 5432 failed: timeout expired

  at vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28
  at Doctrine\DBAL\Driver\PDO\Exception::new()
     (vendor/doctrine/dbal/src/Driver/PDO/PgSQL/Driver.php:35)
  at Doctrine\DBAL\Driver\PDO\PgSQL\Driver->connect()
     (vendor/doctrine/dbal/src/Connection.php:346)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/src/Connection.php:1619)
  at Doctrine\DBAL\Connection->getWrappedConnection()
     (vendor/doctrine/dbal/src/Connection.php:1013)
  at Doctrine\DBAL\Connection->prepare()
     (src/Services/Conexion.php:765)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:2998)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
[1/3] PDOException
PDOException:
SQLSTATE[08006] [7] connection to server at "10.231.0.132", port 5432 failed: timeout expired

  at vendor/doctrine/dbal/src/Driver/PDO/PgSQL/Driver.php:29
  at PDO->__construct()
     (vendor/doctrine/dbal/src/Driver/PDO/PgSQL/Driver.php:29)
  at Doctrine\DBAL\Driver\PDO\PgSQL\Driver->connect()
     (vendor/doctrine/dbal/src/Connection.php:346)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/src/Connection.php:1619)
  at Doctrine\DBAL\Connection->getWrappedConnection()
     (vendor/doctrine/dbal/src/Connection.php:1013)
  at Doctrine\DBAL\Connection->prepare()
     (src/Services/Conexion.php:765)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:2998)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
24 11 2026 09:05:49 ************************************************************eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1A4NjA2OTUyOSIsImNsYXZlIjoiSVpQY0FDOE9rMHUxNjk2MFVXYmJ6QT09XG4iLCJleHAiOjE3OTU1MjkxNzYsImlhdCI6MTc5NTUyOTEyNn0.ws2Il9TOTuf7INGm6LL5KZ1eZKvg8D5s8aTxiRt9_3M -- LM-ERROR: HTTP/1.1 500 Internal Server Error Date: Tue, 24 Nov 2026 14:05:49 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%5B22001%5D%3A%20String%20data%2C%20right%20truncated%3A%207%20ERROR%3A%20%20el%20valor%20es%20demasiado%20largo%20para%20el%20tipo%20character%20varying%28100%29 X-Debug-Exception-File: %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: 278752 An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100) (500 Internal Server Error)

Symfony Exception

PDOException Exception DriverException

HTTP 500 Internal Server Error

An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

Exceptions 3

Doctrine\DBAL\Exception\ DriverException

  1.         // We have to match against the SQLSTATE in the error message in these cases.
  2.         if ($exception->getCode() === 7 && strpos($exception->getMessage(), 'SQLSTATE[08006]') !== false) {
  3.             return new ConnectionException($exception, $query);
  4.         }
  5.         return new DriverException($exception, $query);
  6.     }
  7. }
  1.     private function handleDriverException(
  2.         Driver\Exception $driverException,
  3.         ?Query $query
  4.     ): DriverException {
  5.         $this->exceptionConverter ??= $this->_driver->getExceptionConverter();
  6.         $exception                  = $this->exceptionConverter->convert($driverException, $query);
  7.         if ($exception instanceof ConnectionLost) {
  8.             $this->close();
  9.         }
in vendor/doctrine/dbal/src/Connection.php -> handleDriverException (line 1851)
  1.         Driver\Exception $e,
  2.         string $sql,
  3.         array $params = [],
  4.         array $types = []
  5.     ): DriverException {
  6.         return $this->handleDriverException($e, new Query($sql, $params, $types));
  7.     }
  8.     /** @internal */
  9.     final public function convertException(Driver\Exception $e): DriverException
  10.     {
in vendor/doctrine/dbal/src/Statement.php -> convertExceptionDuringQuery (line 194)
  1.             return new Result(
  2.                 $this->stmt->execute($params),
  3.                 $this->conn,
  4.             );
  5.         } catch (Driver\Exception $ex) {
  6.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  7.         } finally {
  8.             if ($logger !== null) {
  9.                 $logger->stopQuery();
  10.             }
  11.         }
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.         } else {
  2.             $code     = $exception->getCode();
  3.             $sqlState = null;
  4.         }
  5.         return new self($exception->getMessage(), $sqlState, $code, $exception);
  6.     }
  7. }
  1.         }
  2.         try {
  3.             $this->stmt->execute($params);
  4.         } catch (PDOException $exception) {
  5.             throw Exception::new($exception);
  6.         }
  7.         return new Result($this->stmt);
  8.     }
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

PDOException

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Logs

No log messages

Stack Traces 3

[3/3] DriverException
Doctrine\DBAL\Exception\DriverException:
An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
[2/3] Exception
Doctrine\DBAL\Driver\PDO\Exception:
SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
[1/3] PDOException
PDOException:
SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
24 11 2026 09:07:08 ************************************************************eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1A4NjA2OTUyOSIsImNsYXZlIjoiSVpQY0FDOE9rMHUxNjk2MFVXYmJ6QT09XG4iLCJleHAiOjE3OTU1MjkyNTUsImlhdCI6MTc5NTUyOTIwNX0.NxCceKiACfWEFG6q3QuqN3o2_3oTamawPKKpWAuMHNM -- LM-ERROR: HTTP/1.1 500 Internal Server Error Date: Tue, 24 Nov 2026 14:07:08 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%5B22001%5D%3A%20String%20data%2C%20right%20truncated%3A%207%20ERROR%3A%20%20el%20valor%20es%20demasiado%20largo%20para%20el%20tipo%20character%20varying%28100%29 X-Debug-Exception-File: %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: 278752 An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100) (500 Internal Server Error)

Symfony Exception

PDOException Exception DriverException

HTTP 500 Internal Server Error

An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

Exceptions 3

Doctrine\DBAL\Exception\ DriverException

  1.         // We have to match against the SQLSTATE in the error message in these cases.
  2.         if ($exception->getCode() === 7 && strpos($exception->getMessage(), 'SQLSTATE[08006]') !== false) {
  3.             return new ConnectionException($exception, $query);
  4.         }
  5.         return new DriverException($exception, $query);
  6.     }
  7. }
  1.     private function handleDriverException(
  2.         Driver\Exception $driverException,
  3.         ?Query $query
  4.     ): DriverException {
  5.         $this->exceptionConverter ??= $this->_driver->getExceptionConverter();
  6.         $exception                  = $this->exceptionConverter->convert($driverException, $query);
  7.         if ($exception instanceof ConnectionLost) {
  8.             $this->close();
  9.         }
in vendor/doctrine/dbal/src/Connection.php -> handleDriverException (line 1851)
  1.         Driver\Exception $e,
  2.         string $sql,
  3.         array $params = [],
  4.         array $types = []
  5.     ): DriverException {
  6.         return $this->handleDriverException($e, new Query($sql, $params, $types));
  7.     }
  8.     /** @internal */
  9.     final public function convertException(Driver\Exception $e): DriverException
  10.     {
in vendor/doctrine/dbal/src/Statement.php -> convertExceptionDuringQuery (line 194)
  1.             return new Result(
  2.                 $this->stmt->execute($params),
  3.                 $this->conn,
  4.             );
  5.         } catch (Driver\Exception $ex) {
  6.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  7.         } finally {
  8.             if ($logger !== null) {
  9.                 $logger->stopQuery();
  10.             }
  11.         }
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.         } else {
  2.             $code     = $exception->getCode();
  3.             $sqlState = null;
  4.         }
  5.         return new self($exception->getMessage(), $sqlState, $code, $exception);
  6.     }
  7. }
  1.         }
  2.         try {
  3.             $this->stmt->execute($params);
  4.         } catch (PDOException $exception) {
  5.             throw Exception::new($exception);
  6.         }
  7.         return new Result($this->stmt);
  8.     }
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

PDOException

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Logs

No log messages

Stack Traces 3

[3/3] DriverException
Doctrine\DBAL\Exception\DriverException:
An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
[2/3] Exception
Doctrine\DBAL\Driver\PDO\Exception:
SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
[1/3] PDOException
PDOException:
SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
24 11 2026 10:39:04 ************************************************************eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1A4NjA2OTUyOSIsImNsYXZlIjoiSVpQY0FDOE9rMHUxNjk2MFVXYmJ6QT09XG4iLCJleHAiOjE3OTU1MzQ3NzEsImlhdCI6MTc5NTUzNDcyMX0.d2nr3TY6hAPAhjWh0KqcUEfsNl2JhBLNMXaqjGOxOJo -- LM-ERROR: HTTP/1.1 500 Internal Server Error Date: Tue, 24 Nov 2026 15:39:04 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%5B22001%5D%3A%20String%20data%2C%20right%20truncated%3A%207%20ERROR%3A%20%20el%20valor%20es%20demasiado%20largo%20para%20el%20tipo%20character%20varying%28100%29 X-Debug-Exception-File: %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: 278752 An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100) (500 Internal Server Error)

Symfony Exception

PDOException Exception DriverException

HTTP 500 Internal Server Error

An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

Exceptions 3

Doctrine\DBAL\Exception\ DriverException

  1.         // We have to match against the SQLSTATE in the error message in these cases.
  2.         if ($exception->getCode() === 7 && strpos($exception->getMessage(), 'SQLSTATE[08006]') !== false) {
  3.             return new ConnectionException($exception, $query);
  4.         }
  5.         return new DriverException($exception, $query);
  6.     }
  7. }
  1.     private function handleDriverException(
  2.         Driver\Exception $driverException,
  3.         ?Query $query
  4.     ): DriverException {
  5.         $this->exceptionConverter ??= $this->_driver->getExceptionConverter();
  6.         $exception                  = $this->exceptionConverter->convert($driverException, $query);
  7.         if ($exception instanceof ConnectionLost) {
  8.             $this->close();
  9.         }
in vendor/doctrine/dbal/src/Connection.php -> handleDriverException (line 1851)
  1.         Driver\Exception $e,
  2.         string $sql,
  3.         array $params = [],
  4.         array $types = []
  5.     ): DriverException {
  6.         return $this->handleDriverException($e, new Query($sql, $params, $types));
  7.     }
  8.     /** @internal */
  9.     final public function convertException(Driver\Exception $e): DriverException
  10.     {
in vendor/doctrine/dbal/src/Statement.php -> convertExceptionDuringQuery (line 194)
  1.             return new Result(
  2.                 $this->stmt->execute($params),
  3.                 $this->conn,
  4.             );
  5.         } catch (Driver\Exception $ex) {
  6.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  7.         } finally {
  8.             if ($logger !== null) {
  9.                 $logger->stopQuery();
  10.             }
  11.         }
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.         } else {
  2.             $code     = $exception->getCode();
  3.             $sqlState = null;
  4.         }
  5.         return new self($exception->getMessage(), $sqlState, $code, $exception);
  6.     }
  7. }
  1.         }
  2.         try {
  3.             $this->stmt->execute($params);
  4.         } catch (PDOException $exception) {
  5.             throw Exception::new($exception);
  6.         }
  7.         return new Result($this->stmt);
  8.     }
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

PDOException

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Logs

No log messages

Stack Traces 3

[3/3] DriverException
Doctrine\DBAL\Exception\DriverException:
An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
[2/3] Exception
Doctrine\DBAL\Driver\PDO\Exception:
SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
[1/3] PDOException
PDOException:
SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
24 11 2026 10:53:34 ************************************************************eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1A4NjA2OTUyOSIsImNsYXZlIjoiSVpQY0FDOE9rMHUxNjk2MFVXYmJ6QT09XG4iLCJleHAiOjE3OTU1MzU2NDEsImlhdCI6MTc5NTUzNTU5MX0.NkQytErCOHgGARvXk6bJtKLOBd0yuZJ9FIcZ1kth3RM -- LM-ERROR: HTTP/1.1 500 Internal Server Error Date: Tue, 24 Nov 2026 15:53:34 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%5B22001%5D%3A%20String%20data%2C%20right%20truncated%3A%207%20ERROR%3A%20%20el%20valor%20es%20demasiado%20largo%20para%20el%20tipo%20character%20varying%28100%29 X-Debug-Exception-File: %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: 278752 An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100) (500 Internal Server Error)

Symfony Exception

PDOException Exception DriverException

HTTP 500 Internal Server Error

An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

Exceptions 3

Doctrine\DBAL\Exception\ DriverException

  1.         // We have to match against the SQLSTATE in the error message in these cases.
  2.         if ($exception->getCode() === 7 && strpos($exception->getMessage(), 'SQLSTATE[08006]') !== false) {
  3.             return new ConnectionException($exception, $query);
  4.         }
  5.         return new DriverException($exception, $query);
  6.     }
  7. }
  1.     private function handleDriverException(
  2.         Driver\Exception $driverException,
  3.         ?Query $query
  4.     ): DriverException {
  5.         $this->exceptionConverter ??= $this->_driver->getExceptionConverter();
  6.         $exception                  = $this->exceptionConverter->convert($driverException, $query);
  7.         if ($exception instanceof ConnectionLost) {
  8.             $this->close();
  9.         }
in vendor/doctrine/dbal/src/Connection.php -> handleDriverException (line 1851)
  1.         Driver\Exception $e,
  2.         string $sql,
  3.         array $params = [],
  4.         array $types = []
  5.     ): DriverException {
  6.         return $this->handleDriverException($e, new Query($sql, $params, $types));
  7.     }
  8.     /** @internal */
  9.     final public function convertException(Driver\Exception $e): DriverException
  10.     {
in vendor/doctrine/dbal/src/Statement.php -> convertExceptionDuringQuery (line 194)
  1.             return new Result(
  2.                 $this->stmt->execute($params),
  3.                 $this->conn,
  4.             );
  5.         } catch (Driver\Exception $ex) {
  6.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  7.         } finally {
  8.             if ($logger !== null) {
  9.                 $logger->stopQuery();
  10.             }
  11.         }
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.         } else {
  2.             $code     = $exception->getCode();
  3.             $sqlState = null;
  4.         }
  5.         return new self($exception->getMessage(), $sqlState, $code, $exception);
  6.     }
  7. }
  1.         }
  2.         try {
  3.             $this->stmt->execute($params);
  4.         } catch (PDOException $exception) {
  5.             throw Exception::new($exception);
  6.         }
  7.         return new Result($this->stmt);
  8.     }
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

PDOException

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Logs

No log messages

Stack Traces 3

[3/3] DriverException
Doctrine\DBAL\Exception\DriverException:
An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
[2/3] Exception
Doctrine\DBAL\Driver\PDO\Exception:
SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
[1/3] PDOException
PDOException:
SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
24 11 2026 11:04:35 ************************************************************eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1A4NjA2OTUyOSIsImNsYXZlIjoiSVpQY0FDOE9rMHUxNjk2MFVXYmJ6QT09XG4iLCJleHAiOjE3OTU1MzYzMDIsImlhdCI6MTc5NTUzNjI1Mn0.Nhs4nd-Pe9NeajyDVmHxGpk95O-8sPz3Bo2X8_IyKKU -- LM-ERROR: HTTP/1.1 500 Internal Server Error Date: Tue, 24 Nov 2026 16:04:35 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%5B22001%5D%3A%20String%20data%2C%20right%20truncated%3A%207%20ERROR%3A%20%20el%20valor%20es%20demasiado%20largo%20para%20el%20tipo%20character%20varying%28100%29 X-Debug-Exception-File: %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: 278752 An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100) (500 Internal Server Error)

Symfony Exception

PDOException Exception DriverException

HTTP 500 Internal Server Error

An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

Exceptions 3

Doctrine\DBAL\Exception\ DriverException

  1.         // We have to match against the SQLSTATE in the error message in these cases.
  2.         if ($exception->getCode() === 7 && strpos($exception->getMessage(), 'SQLSTATE[08006]') !== false) {
  3.             return new ConnectionException($exception, $query);
  4.         }
  5.         return new DriverException($exception, $query);
  6.     }
  7. }
  1.     private function handleDriverException(
  2.         Driver\Exception $driverException,
  3.         ?Query $query
  4.     ): DriverException {
  5.         $this->exceptionConverter ??= $this->_driver->getExceptionConverter();
  6.         $exception                  = $this->exceptionConverter->convert($driverException, $query);
  7.         if ($exception instanceof ConnectionLost) {
  8.             $this->close();
  9.         }
in vendor/doctrine/dbal/src/Connection.php -> handleDriverException (line 1851)
  1.         Driver\Exception $e,
  2.         string $sql,
  3.         array $params = [],
  4.         array $types = []
  5.     ): DriverException {
  6.         return $this->handleDriverException($e, new Query($sql, $params, $types));
  7.     }
  8.     /** @internal */
  9.     final public function convertException(Driver\Exception $e): DriverException
  10.     {
in vendor/doctrine/dbal/src/Statement.php -> convertExceptionDuringQuery (line 194)
  1.             return new Result(
  2.                 $this->stmt->execute($params),
  3.                 $this->conn,
  4.             );
  5.         } catch (Driver\Exception $ex) {
  6.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  7.         } finally {
  8.             if ($logger !== null) {
  9.                 $logger->stopQuery();
  10.             }
  11.         }
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.         } else {
  2.             $code     = $exception->getCode();
  3.             $sqlState = null;
  4.         }
  5.         return new self($exception->getMessage(), $sqlState, $code, $exception);
  6.     }
  7. }
  1.         }
  2.         try {
  3.             $this->stmt->execute($params);
  4.         } catch (PDOException $exception) {
  5.             throw Exception::new($exception);
  6.         }
  7.         return new Result($this->stmt);
  8.     }
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

PDOException

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Logs

No log messages

Stack Traces 3

[3/3] DriverException
Doctrine\DBAL\Exception\DriverException:
An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
[2/3] Exception
Doctrine\DBAL\Driver\PDO\Exception:
SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
[1/3] PDOException
PDOException:
SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
24 11 2026 11:06:45 ************************************************************eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1A4NjA2OTUyOSIsImNsYXZlIjoiSVpQY0FDOE9rMHUxNjk2MFVXYmJ6QT09XG4iLCJleHAiOjE3OTU1MzY0MzIsImlhdCI6MTc5NTUzNjM4Mn0.gn3eEiKjYuAPXVk7_uZWJnr0j0AZiE7do9MHBXzGf2M -- LM-ERROR: HTTP/1.1 500 Internal Server Error Date: Tue, 24 Nov 2026 16:06:45 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%5B22001%5D%3A%20String%20data%2C%20right%20truncated%3A%207%20ERROR%3A%20%20el%20valor%20es%20demasiado%20largo%20para%20el%20tipo%20character%20varying%28100%29 X-Debug-Exception-File: %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: 278752 An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100) (500 Internal Server Error)

Symfony Exception

PDOException Exception DriverException

HTTP 500 Internal Server Error

An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

Exceptions 3

Doctrine\DBAL\Exception\ DriverException

  1.         // We have to match against the SQLSTATE in the error message in these cases.
  2.         if ($exception->getCode() === 7 && strpos($exception->getMessage(), 'SQLSTATE[08006]') !== false) {
  3.             return new ConnectionException($exception, $query);
  4.         }
  5.         return new DriverException($exception, $query);
  6.     }
  7. }
  1.     private function handleDriverException(
  2.         Driver\Exception $driverException,
  3.         ?Query $query
  4.     ): DriverException {
  5.         $this->exceptionConverter ??= $this->_driver->getExceptionConverter();
  6.         $exception                  = $this->exceptionConverter->convert($driverException, $query);
  7.         if ($exception instanceof ConnectionLost) {
  8.             $this->close();
  9.         }
in vendor/doctrine/dbal/src/Connection.php -> handleDriverException (line 1851)
  1.         Driver\Exception $e,
  2.         string $sql,
  3.         array $params = [],
  4.         array $types = []
  5.     ): DriverException {
  6.         return $this->handleDriverException($e, new Query($sql, $params, $types));
  7.     }
  8.     /** @internal */
  9.     final public function convertException(Driver\Exception $e): DriverException
  10.     {
in vendor/doctrine/dbal/src/Statement.php -> convertExceptionDuringQuery (line 194)
  1.             return new Result(
  2.                 $this->stmt->execute($params),
  3.                 $this->conn,
  4.             );
  5.         } catch (Driver\Exception $ex) {
  6.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  7.         } finally {
  8.             if ($logger !== null) {
  9.                 $logger->stopQuery();
  10.             }
  11.         }
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.         } else {
  2.             $code     = $exception->getCode();
  3.             $sqlState = null;
  4.         }
  5.         return new self($exception->getMessage(), $sqlState, $code, $exception);
  6.     }
  7. }
  1.         }
  2.         try {
  3.             $this->stmt->execute($params);
  4.         } catch (PDOException $exception) {
  5.             throw Exception::new($exception);
  6.         }
  7.         return new Result($this->stmt);
  8.     }
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

PDOException

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Logs

No log messages

Stack Traces 3

[3/3] DriverException
Doctrine\DBAL\Exception\DriverException:
An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
[2/3] Exception
Doctrine\DBAL\Driver\PDO\Exception:
SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
[1/3] PDOException
PDOException:
SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
24 11 2026 11:13:25 ************************************************************eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1A4NjA2OTUyOSIsImNsYXZlIjoiSVpQY0FDOE9rMHUxNjk2MFVXYmJ6QT09XG4iLCJleHAiOjE3OTU1MzY4MzIsImlhdCI6MTc5NTUzNjc4Mn0.aBpkESpQBi32SUOlzJVPY0hzTxESwpGVs2JUXstynkg -- LM-ERROR: HTTP/1.1 500 Internal Server Error Date: Tue, 24 Nov 2026 16:13:25 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%5B22001%5D%3A%20String%20data%2C%20right%20truncated%3A%207%20ERROR%3A%20%20el%20valor%20es%20demasiado%20largo%20para%20el%20tipo%20character%20varying%28100%29 X-Debug-Exception-File: %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: 278752 An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100) (500 Internal Server Error)

Symfony Exception

PDOException Exception DriverException

HTTP 500 Internal Server Error

An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

Exceptions 3

Doctrine\DBAL\Exception\ DriverException

  1.         // We have to match against the SQLSTATE in the error message in these cases.
  2.         if ($exception->getCode() === 7 && strpos($exception->getMessage(), 'SQLSTATE[08006]') !== false) {
  3.             return new ConnectionException($exception, $query);
  4.         }
  5.         return new DriverException($exception, $query);
  6.     }
  7. }
  1.     private function handleDriverException(
  2.         Driver\Exception $driverException,
  3.         ?Query $query
  4.     ): DriverException {
  5.         $this->exceptionConverter ??= $this->_driver->getExceptionConverter();
  6.         $exception                  = $this->exceptionConverter->convert($driverException, $query);
  7.         if ($exception instanceof ConnectionLost) {
  8.             $this->close();
  9.         }
in vendor/doctrine/dbal/src/Connection.php -> handleDriverException (line 1851)
  1.         Driver\Exception $e,
  2.         string $sql,
  3.         array $params = [],
  4.         array $types = []
  5.     ): DriverException {
  6.         return $this->handleDriverException($e, new Query($sql, $params, $types));
  7.     }
  8.     /** @internal */
  9.     final public function convertException(Driver\Exception $e): DriverException
  10.     {
in vendor/doctrine/dbal/src/Statement.php -> convertExceptionDuringQuery (line 194)
  1.             return new Result(
  2.                 $this->stmt->execute($params),
  3.                 $this->conn,
  4.             );
  5.         } catch (Driver\Exception $ex) {
  6.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  7.         } finally {
  8.             if ($logger !== null) {
  9.                 $logger->stopQuery();
  10.             }
  11.         }
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.         } else {
  2.             $code     = $exception->getCode();
  3.             $sqlState = null;
  4.         }
  5.         return new self($exception->getMessage(), $sqlState, $code, $exception);
  6.     }
  7. }
  1.         }
  2.         try {
  3.             $this->stmt->execute($params);
  4.         } catch (PDOException $exception) {
  5.             throw Exception::new($exception);
  6.         }
  7.         return new Result($this->stmt);
  8.     }
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

PDOException

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Logs

No log messages

Stack Traces 3

[3/3] DriverException
Doctrine\DBAL\Exception\DriverException:
An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
[2/3] Exception
Doctrine\DBAL\Driver\PDO\Exception:
SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
[1/3] PDOException
PDOException:
SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
24 11 2026 11:18:40 ************************************************************eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1A4NjA2OTUyOSIsImNsYXZlIjoiSVpQY0FDOE9rMHUxNjk2MFVXYmJ6QT09XG4iLCJleHAiOjE3OTU1MzcxNDcsImlhdCI6MTc5NTUzNzA5N30.k_A6xLDvK3ukJr4A1kIV_tSpjd8OhgLDCHIsfbxIYSE -- LM-ERROR: HTTP/1.1 500 Internal Server Error Date: Tue, 24 Nov 2026 16:18:40 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%5B22001%5D%3A%20String%20data%2C%20right%20truncated%3A%207%20ERROR%3A%20%20el%20valor%20es%20demasiado%20largo%20para%20el%20tipo%20character%20varying%28100%29 X-Debug-Exception-File: %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: 278752 An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100) (500 Internal Server Error)

Symfony Exception

PDOException Exception DriverException

HTTP 500 Internal Server Error

An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

Exceptions 3

Doctrine\DBAL\Exception\ DriverException

  1.         // We have to match against the SQLSTATE in the error message in these cases.
  2.         if ($exception->getCode() === 7 && strpos($exception->getMessage(), 'SQLSTATE[08006]') !== false) {
  3.             return new ConnectionException($exception, $query);
  4.         }
  5.         return new DriverException($exception, $query);
  6.     }
  7. }
  1.     private function handleDriverException(
  2.         Driver\Exception $driverException,
  3.         ?Query $query
  4.     ): DriverException {
  5.         $this->exceptionConverter ??= $this->_driver->getExceptionConverter();
  6.         $exception                  = $this->exceptionConverter->convert($driverException, $query);
  7.         if ($exception instanceof ConnectionLost) {
  8.             $this->close();
  9.         }
in vendor/doctrine/dbal/src/Connection.php -> handleDriverException (line 1851)
  1.         Driver\Exception $e,
  2.         string $sql,
  3.         array $params = [],
  4.         array $types = []
  5.     ): DriverException {
  6.         return $this->handleDriverException($e, new Query($sql, $params, $types));
  7.     }
  8.     /** @internal */
  9.     final public function convertException(Driver\Exception $e): DriverException
  10.     {
in vendor/doctrine/dbal/src/Statement.php -> convertExceptionDuringQuery (line 194)
  1.             return new Result(
  2.                 $this->stmt->execute($params),
  3.                 $this->conn,
  4.             );
  5.         } catch (Driver\Exception $ex) {
  6.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  7.         } finally {
  8.             if ($logger !== null) {
  9.                 $logger->stopQuery();
  10.             }
  11.         }
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.         } else {
  2.             $code     = $exception->getCode();
  3.             $sqlState = null;
  4.         }
  5.         return new self($exception->getMessage(), $sqlState, $code, $exception);
  6.     }
  7. }
  1.         }
  2.         try {
  3.             $this->stmt->execute($params);
  4.         } catch (PDOException $exception) {
  5.             throw Exception::new($exception);
  6.         }
  7.         return new Result($this->stmt);
  8.     }
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

PDOException

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Logs

No log messages

Stack Traces 3

[3/3] DriverException
Doctrine\DBAL\Exception\DriverException:
An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
[2/3] Exception
Doctrine\DBAL\Driver\PDO\Exception:
SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
[1/3] PDOException
PDOException:
SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
24 11 2026 11:27:13 ************************************************************eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1A4NjA2OTUyOSIsImNsYXZlIjoiSVpQY0FDOE9rMHUxNjk2MFVXYmJ6QT09XG4iLCJleHAiOjE3OTU1Mzc2NjEsImlhdCI6MTc5NTUzNzYxMX0.ahn9xl7r2n4UFiweiFteiDQJuMzTYrqTFIGGaQZu2Mo -- LM-ERROR: HTTP/1.1 500 Internal Server Error Date: Tue, 24 Nov 2026 16:27:13 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%5B22001%5D%3A%20String%20data%2C%20right%20truncated%3A%207%20ERROR%3A%20%20el%20valor%20es%20demasiado%20largo%20para%20el%20tipo%20character%20varying%28100%29 X-Debug-Exception-File: %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: 278752 An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100) (500 Internal Server Error)

Symfony Exception

PDOException Exception DriverException

HTTP 500 Internal Server Error

An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

Exceptions 3

Doctrine\DBAL\Exception\ DriverException

  1.         // We have to match against the SQLSTATE in the error message in these cases.
  2.         if ($exception->getCode() === 7 && strpos($exception->getMessage(), 'SQLSTATE[08006]') !== false) {
  3.             return new ConnectionException($exception, $query);
  4.         }
  5.         return new DriverException($exception, $query);
  6.     }
  7. }
  1.     private function handleDriverException(
  2.         Driver\Exception $driverException,
  3.         ?Query $query
  4.     ): DriverException {
  5.         $this->exceptionConverter ??= $this->_driver->getExceptionConverter();
  6.         $exception                  = $this->exceptionConverter->convert($driverException, $query);
  7.         if ($exception instanceof ConnectionLost) {
  8.             $this->close();
  9.         }
in vendor/doctrine/dbal/src/Connection.php -> handleDriverException (line 1851)
  1.         Driver\Exception $e,
  2.         string $sql,
  3.         array $params = [],
  4.         array $types = []
  5.     ): DriverException {
  6.         return $this->handleDriverException($e, new Query($sql, $params, $types));
  7.     }
  8.     /** @internal */
  9.     final public function convertException(Driver\Exception $e): DriverException
  10.     {
in vendor/doctrine/dbal/src/Statement.php -> convertExceptionDuringQuery (line 194)
  1.             return new Result(
  2.                 $this->stmt->execute($params),
  3.                 $this->conn,
  4.             );
  5.         } catch (Driver\Exception $ex) {
  6.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  7.         } finally {
  8.             if ($logger !== null) {
  9.                 $logger->stopQuery();
  10.             }
  11.         }
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.         } else {
  2.             $code     = $exception->getCode();
  3.             $sqlState = null;
  4.         }
  5.         return new self($exception->getMessage(), $sqlState, $code, $exception);
  6.     }
  7. }
  1.         }
  2.         try {
  3.             $this->stmt->execute($params);
  4.         } catch (PDOException $exception) {
  5.             throw Exception::new($exception);
  6.         }
  7.         return new Result($this->stmt);
  8.     }
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

PDOException

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Logs

No log messages

Stack Traces 3

[3/3] DriverException
Doctrine\DBAL\Exception\DriverException:
An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
[2/3] Exception
Doctrine\DBAL\Driver\PDO\Exception:
SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
[1/3] PDOException
PDOException:
SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
24 11 2026 11:47:25 ************************************************************eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1A4NjA2OTUyOSIsImNsYXZlIjoiSVpQY0FDOE9rMHUxNjk2MFVXYmJ6QT09XG4iLCJleHAiOjE3OTU1Mzg4NzQsImlhdCI6MTc5NTUzODgyNH0.w8Cj08wztaVpMF7knA6J26tqiROfU6etdgy-BA20VJg -- LM-ERROR: HTTP/1.1 500 Internal Server Error Date: Tue, 24 Nov 2026 16:47:25 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%5B22001%5D%3A%20String%20data%2C%20right%20truncated%3A%207%20ERROR%3A%20%20el%20valor%20es%20demasiado%20largo%20para%20el%20tipo%20character%20varying%28100%29 X-Debug-Exception-File: %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: 278752 An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100) (500 Internal Server Error)

Symfony Exception

PDOException Exception DriverException

HTTP 500 Internal Server Error

An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

Exceptions 3

Doctrine\DBAL\Exception\ DriverException

  1.         // We have to match against the SQLSTATE in the error message in these cases.
  2.         if ($exception->getCode() === 7 && strpos($exception->getMessage(), 'SQLSTATE[08006]') !== false) {
  3.             return new ConnectionException($exception, $query);
  4.         }
  5.         return new DriverException($exception, $query);
  6.     }
  7. }
  1.     private function handleDriverException(
  2.         Driver\Exception $driverException,
  3.         ?Query $query
  4.     ): DriverException {
  5.         $this->exceptionConverter ??= $this->_driver->getExceptionConverter();
  6.         $exception                  = $this->exceptionConverter->convert($driverException, $query);
  7.         if ($exception instanceof ConnectionLost) {
  8.             $this->close();
  9.         }
in vendor/doctrine/dbal/src/Connection.php -> handleDriverException (line 1851)
  1.         Driver\Exception $e,
  2.         string $sql,
  3.         array $params = [],
  4.         array $types = []
  5.     ): DriverException {
  6.         return $this->handleDriverException($e, new Query($sql, $params, $types));
  7.     }
  8.     /** @internal */
  9.     final public function convertException(Driver\Exception $e): DriverException
  10.     {
in vendor/doctrine/dbal/src/Statement.php -> convertExceptionDuringQuery (line 194)
  1.             return new Result(
  2.                 $this->stmt->execute($params),
  3.                 $this->conn,
  4.             );
  5.         } catch (Driver\Exception $ex) {
  6.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  7.         } finally {
  8.             if ($logger !== null) {
  9.                 $logger->stopQuery();
  10.             }
  11.         }
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.         } else {
  2.             $code     = $exception->getCode();
  3.             $sqlState = null;
  4.         }
  5.         return new self($exception->getMessage(), $sqlState, $code, $exception);
  6.     }
  7. }
  1.         }
  2.         try {
  3.             $this->stmt->execute($params);
  4.         } catch (PDOException $exception) {
  5.             throw Exception::new($exception);
  6.         }
  7.         return new Result($this->stmt);
  8.     }
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

PDOException

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3326)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Logs

No log messages

Stack Traces 3

[3/3] DriverException
Doctrine\DBAL\Exception\DriverException:
An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
[2/3] Exception
Doctrine\DBAL\Driver\PDO\Exception:
SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
[1/3] PDOException
PDOException:
SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3326)
  at App\Controller\PtatController->login_movil()
     (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('/www/php81/serversoap/recaudos/vendor/autoload_runtime.php')
     (public/index.php:16)                
24 11 2026 12:06:50 ************************************************************eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1A4NjA2OTUyOSIsImNsYXZlIjoiSVpQY0FDOE9rMHUxNjk2MFVXYmJ6QT09XG4iLCJleHAiOjE3OTU1NDAwNDQsImlhdCI6MTc5NTUzOTk5NH0.O_7coW0JVu7TvVD4UzN-9h_gRqIOJG1CKbalX-qvn5k -- LM-ERROR: HTTP/1.1 500 Internal Server Error Date: Tue, 24 Nov 2026 17:06:49 GMT Server: Apache/2.4.41 (Ubuntu) X-Powered-By: PHP/8.1.32 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%5B22001%5D%3A%20String%20data%2C%20right%20truncated%3A%207%20ERROR%3A%20%20el%20valor%20es%20demasiado%20largo%20para%20el%20tipo%20character%20varying%28100%29 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: 278824 An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100) (500 Internal Server Error)

Symfony Exception

PDOException Exception DriverException

HTTP 500 Internal Server Error

An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

Exceptions 3

Doctrine\DBAL\Exception\ DriverException

  1.         // We have to match against the SQLSTATE in the error message in these cases.
  2.         if ($exception->getCode() === 7 && strpos($exception->getMessage(), 'SQLSTATE[08006]') !== false) {
  3.             return new ConnectionException($exception, $query);
  4.         }
  5.         return new DriverException($exception, $query);
  6.     }
  7. }
  1.     private function handleDriverException(
  2.         Driver\Exception $driverException,
  3.         ?Query $query
  4.     ): DriverException {
  5.         $this->exceptionConverter ??= $this->_driver->getExceptionConverter();
  6.         $exception                  = $this->exceptionConverter->convert($driverException, $query);
  7.         if ($exception instanceof ConnectionLost) {
  8.             $this->close();
  9.         }
in vendor/doctrine/dbal/src/Connection.php -> handleDriverException (line 1851)
  1.         Driver\Exception $e,
  2.         string $sql,
  3.         array $params = [],
  4.         array $types = []
  5.     ): DriverException {
  6.         return $this->handleDriverException($e, new Query($sql, $params, $types));
  7.     }
  8.     /** @internal */
  9.     final public function convertException(Driver\Exception $e): DriverException
  10.     {
in vendor/doctrine/dbal/src/Statement.php -> convertExceptionDuringQuery (line 194)
  1.             return new Result(
  2.                 $this->stmt->execute($params),
  3.                 $this->conn,
  4.             );
  5.         } catch (Driver\Exception $ex) {
  6.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  7.         } finally {
  8.             if ($logger !== null) {
  9.                 $logger->stopQuery();
  10.             }
  11.         }
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3256)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.         } else {
  2.             $code     = $exception->getCode();
  3.             $sqlState = null;
  4.         }
  5.         return new self($exception->getMessage(), $sqlState, $code, $exception);
  6.     }
  7. }
  1.         }
  2.         try {
  3.             $this->stmt->execute($params);
  4.         } catch (PDOException $exception) {
  5.             throw Exception::new($exception);
  6.         }
  7.         return new Result($this->stmt);
  8.     }
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3256)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

PDOException

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3256)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Logs

No log messages

Stack Traces 3

[3/3] DriverException
Doctrine\DBAL\Exception\DriverException:
An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3256)
  at App\Controller\PtatController->login_movil()
     (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[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3256)
  at App\Controller\PtatController->login_movil()
     (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[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3256)
  at App\Controller\PtatController->login_movil()
     (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)                
24 11 2026 12:11:18 ************************************************************eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1A4NjA2OTUyOSIsImNsYXZlIjoiSVpQY0FDOE9rMHUxNjk2MFVXYmJ6QT09XG4iLCJleHAiOjE3OTU1NDAzMTMsImlhdCI6MTc5NTU0MDI2M30.irOCTkPnjMNFVpQB4L_27lLuTWMcd2AikgP3yHjWV10 -- LM-ERROR: HTTP/1.1 500 Internal Server Error Date: Tue, 24 Nov 2026 17:11:18 GMT Server: Apache/2.4.41 (Ubuntu) X-Powered-By: PHP/8.1.32 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%5B22001%5D%3A%20String%20data%2C%20right%20truncated%3A%207%20ERROR%3A%20%20el%20valor%20es%20demasiado%20largo%20para%20el%20tipo%20character%20varying%28100%29 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: 278824 An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100) (500 Internal Server Error)

Symfony Exception

PDOException Exception DriverException

HTTP 500 Internal Server Error

An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

Exceptions 3

Doctrine\DBAL\Exception\ DriverException

  1.         // We have to match against the SQLSTATE in the error message in these cases.
  2.         if ($exception->getCode() === 7 && strpos($exception->getMessage(), 'SQLSTATE[08006]') !== false) {
  3.             return new ConnectionException($exception, $query);
  4.         }
  5.         return new DriverException($exception, $query);
  6.     }
  7. }
  1.     private function handleDriverException(
  2.         Driver\Exception $driverException,
  3.         ?Query $query
  4.     ): DriverException {
  5.         $this->exceptionConverter ??= $this->_driver->getExceptionConverter();
  6.         $exception                  = $this->exceptionConverter->convert($driverException, $query);
  7.         if ($exception instanceof ConnectionLost) {
  8.             $this->close();
  9.         }
in vendor/doctrine/dbal/src/Connection.php -> handleDriverException (line 1851)
  1.         Driver\Exception $e,
  2.         string $sql,
  3.         array $params = [],
  4.         array $types = []
  5.     ): DriverException {
  6.         return $this->handleDriverException($e, new Query($sql, $params, $types));
  7.     }
  8.     /** @internal */
  9.     final public function convertException(Driver\Exception $e): DriverException
  10.     {
in vendor/doctrine/dbal/src/Statement.php -> convertExceptionDuringQuery (line 194)
  1.             return new Result(
  2.                 $this->stmt->execute($params),
  3.                 $this->conn,
  4.             );
  5.         } catch (Driver\Exception $ex) {
  6.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  7.         } finally {
  8.             if ($logger !== null) {
  9.                 $logger->stopQuery();
  10.             }
  11.         }
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3256)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.         } else {
  2.             $code     = $exception->getCode();
  3.             $sqlState = null;
  4.         }
  5.         return new self($exception->getMessage(), $sqlState, $code, $exception);
  6.     }
  7. }
  1.         }
  2.         try {
  3.             $this->stmt->execute($params);
  4.         } catch (PDOException $exception) {
  5.             throw Exception::new($exception);
  6.         }
  7.         return new Result($this->stmt);
  8.     }
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3256)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

PDOException

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3256)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Logs

No log messages

Stack Traces 3

[3/3] DriverException
Doctrine\DBAL\Exception\DriverException:
An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3256)
  at App\Controller\PtatController->login_movil()
     (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[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3256)
  at App\Controller\PtatController->login_movil()
     (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[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3256)
  at App\Controller\PtatController->login_movil()
     (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)                
24 11 2026 12:38:18 ************************************************************eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1A4NjA2OTUyOSIsImNsYXZlIjoiSVpQY0FDOE9rMHUxNjk2MFVXYmJ6QT09XG4iLCJleHAiOjE3OTU1NDE5MzMsImlhdCI6MTc5NTU0MTg4M30.W4hmbUQvRynJIt541n4EtKnZYt5fijq7ZwYqbGdDQWc -- LM-ERROR: HTTP/1.1 500 Internal Server Error Date: Tue, 24 Nov 2026 17:38:17 GMT Server: Apache/2.4.41 (Ubuntu) X-Powered-By: PHP/8.1.32 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%5B22001%5D%3A%20String%20data%2C%20right%20truncated%3A%207%20ERROR%3A%20%20el%20valor%20es%20demasiado%20largo%20para%20el%20tipo%20character%20varying%28100%29 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: 278857 An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100) (500 Internal Server Error)

Symfony Exception

PDOException Exception DriverException

HTTP 500 Internal Server Error

An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

Exceptions 3

Doctrine\DBAL\Exception\ DriverException

  1.         // We have to match against the SQLSTATE in the error message in these cases.
  2.         if ($exception->getCode() === 7 && strpos($exception->getMessage(), 'SQLSTATE[08006]') !== false) {
  3.             return new ConnectionException($exception, $query);
  4.         }
  5.         return new DriverException($exception, $query);
  6.     }
  7. }
  1.     private function handleDriverException(
  2.         Driver\Exception $driverException,
  3.         ?Query $query
  4.     ): DriverException {
  5.         $this->exceptionConverter ??= $this->_driver->getExceptionConverter();
  6.         $exception                  = $this->exceptionConverter->convert($driverException, $query);
  7.         if ($exception instanceof ConnectionLost) {
  8.             $this->close();
  9.         }
in vendor/doctrine/dbal/src/Connection.php -> handleDriverException (line 1851)
  1.         Driver\Exception $e,
  2.         string $sql,
  3.         array $params = [],
  4.         array $types = []
  5.     ): DriverException {
  6.         return $this->handleDriverException($e, new Query($sql, $params, $types));
  7.     }
  8.     /** @internal */
  9.     final public function convertException(Driver\Exception $e): DriverException
  10.     {
in vendor/doctrine/dbal/src/Statement.php -> convertExceptionDuringQuery (line 194)
  1.             return new Result(
  2.                 $this->stmt->execute($params),
  3.                 $this->conn,
  4.             );
  5.         } catch (Driver\Exception $ex) {
  6.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  7.         } finally {
  8.             if ($logger !== null) {
  9.                 $logger->stopQuery();
  10.             }
  11.         }
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3327)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.         } else {
  2.             $code     = $exception->getCode();
  3.             $sqlState = null;
  4.         }
  5.         return new self($exception->getMessage(), $sqlState, $code, $exception);
  6.     }
  7. }
  1.         }
  2.         try {
  3.             $this->stmt->execute($params);
  4.         } catch (PDOException $exception) {
  5.             throw Exception::new($exception);
  6.         }
  7.         return new Result($this->stmt);
  8.     }
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3327)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

PDOException

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3327)
  1.     $hash_r_token = password_hash($r_token, PASSWORD_DEFAULT, $opciones);
  2.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  3.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  4.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Logs

No log messages

Stack Traces 3

[3/3] DriverException
Doctrine\DBAL\Exception\DriverException:
An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3327)
  at App\Controller\PtatController->login_movil()
     (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[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3327)
  at App\Controller\PtatController->login_movil()
     (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[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3327)
  at App\Controller\PtatController->login_movil()
     (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)                
24 11 2026 12:50:12 ************************************************************eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1A4NjA2OTUyOSIsImNsYXZlIjoiSVpQY0FDOE9rMHUxNjk2MFVXYmJ6QT09XG4iLCJleHAiOjE3OTU1NDI2NDcsImlhdCI6MTc5NTU0MjU5N30.rdhhRXTOOGnJr_8_PNldaytim1M25rdAJnHhvQP0J24 -- LM-ERROR: HTTP/1.1 500 Internal Server Error Date: Tue, 24 Nov 2026 17:50:12 GMT Server: Apache/2.4.41 (Ubuntu) X-Powered-By: PHP/8.1.32 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%5B22001%5D%3A%20String%20data%2C%20right%20truncated%3A%207%20ERROR%3A%20%20el%20valor%20es%20demasiado%20largo%20para%20el%20tipo%20character%20varying%28100%29 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: 278755 An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100) (500 Internal Server Error)

Symfony Exception

PDOException Exception DriverException

HTTP 500 Internal Server Error

An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

Exceptions 3

Doctrine\DBAL\Exception\ DriverException

  1.         // We have to match against the SQLSTATE in the error message in these cases.
  2.         if ($exception->getCode() === 7 && strpos($exception->getMessage(), 'SQLSTATE[08006]') !== false) {
  3.             return new ConnectionException($exception, $query);
  4.         }
  5.         return new DriverException($exception, $query);
  6.     }
  7. }
  1.     private function handleDriverException(
  2.         Driver\Exception $driverException,
  3.         ?Query $query
  4.     ): DriverException {
  5.         $this->exceptionConverter ??= $this->_driver->getExceptionConverter();
  6.         $exception                  = $this->exceptionConverter->convert($driverException, $query);
  7.         if ($exception instanceof ConnectionLost) {
  8.             $this->close();
  9.         }
in vendor/doctrine/dbal/src/Connection.php -> handleDriverException (line 1851)
  1.         Driver\Exception $e,
  2.         string $sql,
  3.         array $params = [],
  4.         array $types = []
  5.     ): DriverException {
  6.         return $this->handleDriverException($e, new Query($sql, $params, $types));
  7.     }
  8.     /** @internal */
  9.     final public function convertException(Driver\Exception $e): DriverException
  10.     {
in vendor/doctrine/dbal/src/Statement.php -> convertExceptionDuringQuery (line 194)
  1.             return new Result(
  2.                 $this->stmt->execute($params),
  3.                 $this->conn,
  4.             );
  5.         } catch (Driver\Exception $ex) {
  6.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  7.         } finally {
  8.             if ($logger !== null) {
  9.                 $logger->stopQuery();
  10.             }
  11.         }
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3334)
  1.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  2.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  3.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  4.     $this->log->logs('sql_sesion:'. $sql_sesion);
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.         } else {
  2.             $code     = $exception->getCode();
  3.             $sqlState = null;
  4.         }
  5.         return new self($exception->getMessage(), $sqlState, $code, $exception);
  6.     }
  7. }
  1.         }
  2.         try {
  3.             $this->stmt->execute($params);
  4.         } catch (PDOException $exception) {
  5.             throw Exception::new($exception);
  6.         }
  7.         return new Result($this->stmt);
  8.     }
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3334)
  1.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  2.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  3.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  4.     $this->log->logs('sql_sesion:'. $sql_sesion);
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

PDOException

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3334)
  1.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  2.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  3.     VALUES ('$usuario','$imeis','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  4.     $this->log->logs('sql_sesion:'. $sql_sesion);
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Logs

No log messages

Stack Traces 3

[3/3] DriverException
Doctrine\DBAL\Exception\DriverException:
An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3334)
  at App\Controller\PtatController->login_movil()
     (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[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3334)
  at App\Controller\PtatController->login_movil()
     (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[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3334)
  at App\Controller\PtatController->login_movil()
     (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)                
24 11 2026 13:00:05 ************************************************************eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1A4NjA2OTUyOSIsImNsYXZlIjoiSVpQY0FDOE9rMHUxNjk2MFVXYmJ6QT09XG4iLCJleHAiOjE3OTU1NDMyNDAsImlhdCI6MTc5NTU0MzE5MH0.v4_jrO275xTpDVvRvOnt8eVcdmgG7k_1gx63rbwbxtY -- LM-ERROR: HTTP/1.1 500 Internal Server Error Date: Tue, 24 Nov 2026 18:00:05 GMT Server: Apache/2.4.41 (Ubuntu) X-Powered-By: PHP/8.1.32 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%5B22001%5D%3A%20String%20data%2C%20right%20truncated%3A%207%20ERROR%3A%20%20el%20valor%20es%20demasiado%20largo%20para%20el%20tipo%20character%20varying%28100%29 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: 278794 An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100) (500 Internal Server Error)

Symfony Exception

PDOException Exception DriverException

HTTP 500 Internal Server Error

An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

Exceptions 3

Doctrine\DBAL\Exception\ DriverException

  1.         // We have to match against the SQLSTATE in the error message in these cases.
  2.         if ($exception->getCode() === 7 && strpos($exception->getMessage(), 'SQLSTATE[08006]') !== false) {
  3.             return new ConnectionException($exception, $query);
  4.         }
  5.         return new DriverException($exception, $query);
  6.     }
  7. }
  1.     private function handleDriverException(
  2.         Driver\Exception $driverException,
  3.         ?Query $query
  4.     ): DriverException {
  5.         $this->exceptionConverter ??= $this->_driver->getExceptionConverter();
  6.         $exception                  = $this->exceptionConverter->convert($driverException, $query);
  7.         if ($exception instanceof ConnectionLost) {
  8.             $this->close();
  9.         }
in vendor/doctrine/dbal/src/Connection.php -> handleDriverException (line 1851)
  1.         Driver\Exception $e,
  2.         string $sql,
  3.         array $params = [],
  4.         array $types = []
  5.     ): DriverException {
  6.         return $this->handleDriverException($e, new Query($sql, $params, $types));
  7.     }
  8.     /** @internal */
  9.     final public function convertException(Driver\Exception $e): DriverException
  10.     {
in vendor/doctrine/dbal/src/Statement.php -> convertExceptionDuringQuery (line 194)
  1.             return new Result(
  2.                 $this->stmt->execute($params),
  3.                 $this->conn,
  4.             );
  5.         } catch (Driver\Exception $ex) {
  6.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  7.         } finally {
  8.             if ($logger !== null) {
  9.                 $logger->stopQuery();
  10.             }
  11.         }
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3334)
  1.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  2.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  3.     VALUES ('$usuario','substr($imeis,0,99)','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  4.     $this->log->logs('sql_sesion:'. $sql_sesion);
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.         } else {
  2.             $code     = $exception->getCode();
  3.             $sqlState = null;
  4.         }
  5.         return new self($exception->getMessage(), $sqlState, $code, $exception);
  6.     }
  7. }
  1.         }
  2.         try {
  3.             $this->stmt->execute($params);
  4.         } catch (PDOException $exception) {
  5.             throw Exception::new($exception);
  6.         }
  7.         return new Result($this->stmt);
  8.     }
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3334)
  1.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  2.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  3.     VALUES ('$usuario','substr($imeis,0,99)','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  4.     $this->log->logs('sql_sesion:'. $sql_sesion);
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

PDOException

SQLSTATE[22001]: String data, right truncated: 7 ERROR: el valor es demasiado largo para el tipo character varying(100)

  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 3334)
  1.     $hash_db = $hash_r_token.",".$hash_r_token_refresh;
  2.     $sql_sesion = "INSERT INTO sesiones_usuarios_reportes (usuario,imeis,ip,name_device,operador,conexion,tipo,hash)
  3.     VALUES ('$usuario','substr($imeis,0,99)','$ip','$name_device','$operador',now(),1,'$hash_db') RETURNING id";
  4.     $this->log->logs('sql_sesion:'. $sql_sesion);
  5.     $result_sesion = $this->cnn->query('0', $sql_sesion);
  6.     if (count($result_sesion) <= 0)
  7.     {
  8.       $respuesta["datos"] = "No se pudo generar el token, Intente nuevamente";
  9.       return $response->setContent(json_encode($respuesta));
  10.     }
in vendor/symfony/http-kernel/HttpKernel.php -> login_movil (line 163)
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Logs

No log messages

Stack Traces 3

[3/3] DriverException
Doctrine\DBAL\Exception\DriverException:
An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3334)
  at App\Controller\PtatController->login_movil()
     (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[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3334)
  at App\Controller\PtatController->login_movil()
     (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[22001]: String data, right truncated: 7 ERROR:  el valor es demasiado largo para el tipo character varying(100)

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:3334)
  at App\Controller\PtatController->login_movil()
     (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)                
24 11 2026 13:02:57 ************************************************************CP86069529 -- eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3VhcmlvIjoiQ1A4NjA2OTUyOSIsImlhdCI6MTc5NTU0MzM1NSwiZXhwIjoxNzk1NTUyMzU1fQ.Chc14wK-Qs897jtVK3e3VxAPneEWlQ3F3wzZqLlnErA -- MM-ERROR: HTTP/1.1 500 Internal Server Error Date: Tue, 24 Nov 2026 18:02:57 GMT Server: Apache/2.4.41 (Ubuntu) X-Powered-By: PHP/8.1.32 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%5B42601%5D%3A%20Syntax%20error%3A%207%20ERROR%3A%20%20error%20de%20sintaxis%20en%20o%20cerca%20de%20%C3%82%C2%AB%29%C3%82%C2%BB%0ALINE%2010%3A%20%20%20%20%20WHERE%20l.punto_venta%20IN%20%28%29%20AND%20%28%28l.estado%20%3D%20%27C%27%20AND%20l.fec...%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%5E X-Debug-Exception-File: %2Fvar%2Fwww%2Fphp81%2Fserversoap%2Frecaudos%2Fvendor%2Fdoctrine%2Fdbal%2Fsrc%2FDriver%2FAPI%2FPostgreSQL%2FExceptionConverter.php:62 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: 296803 An exception occurred while executing a query: SQLSTATE[42601]: Syntax error: 7 ERROR: error de sintaxis en o cerca de «)» LINE 10: WHERE l.punto_venta IN () AND ((l.estado = 'C' AND l.fec... ^ (500 Internal Server Error)

Symfony Exception

PDOException Exception SyntaxErrorException

HTTP 500 Internal Server Error

An exception occurred while executing a query: SQLSTATE[42601]: Syntax error: 7 ERROR: error de sintaxis en o cerca de «)»
LINE 10: WHERE l.punto_venta IN () AND ((l.estado = 'C' AND l.fec...
^

Exceptions 3

Doctrine\DBAL\Exception\ SyntaxErrorException

  1.             case '3F000':
  2.                 return new SchemaDoesNotExist($exception, $query);
  3.             case '42601':
  4.                 return new SyntaxErrorException($exception, $query);
  5.             case '42702':
  6.                 return new NonUniqueFieldNameException($exception, $query);
  7.             case '42703':
  1.     private function handleDriverException(
  2.         Driver\Exception $driverException,
  3.         ?Query $query
  4.     ): DriverException {
  5.         $this->exceptionConverter ??= $this->_driver->getExceptionConverter();
  6.         $exception                  = $this->exceptionConverter->convert($driverException, $query);
  7.         if ($exception instanceof ConnectionLost) {
  8.             $this->close();
  9.         }
in vendor/doctrine/dbal/src/Connection.php -> handleDriverException (line 1851)
  1.         Driver\Exception $e,
  2.         string $sql,
  3.         array $params = [],
  4.         array $types = []
  5.     ): DriverException {
  6.         return $this->handleDriverException($e, new Query($sql, $params, $types));
  7.     }
  8.     /** @internal */
  9.     final public function convertException(Driver\Exception $e): DriverException
  10.     {
in vendor/doctrine/dbal/src/Statement.php -> convertExceptionDuringQuery (line 194)
  1.             return new Result(
  2.                 $this->stmt->execute($params),
  3.                 $this->conn,
  4.             );
  5.         } catch (Driver\Exception $ex) {
  6.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  7.         } finally {
  8.             if ($logger !== null) {
  9.                 $logger->stopQuery();
  10.             }
  11.         }
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 2927)
  1.     COALESCE(p.nombres,'')||' '||COALESCE(p.apellido1,'')||' '||COALESCE(p.apellido2,'') as nom_asesora
  2.     FROM liquidadores_vendedor l join personas p on p.documento=cast(ltrim(l.usuario,'CVP') as numeric)
  3.     WHERE l.punto_venta IN ($pdvs) AND ((l.estado = 'C' AND l.fecha_creacion >= CURRENT_TIMESTAMP - INTERVAL '3 days') 
  4.     OR (l.estado = 'T' AND l.recogedor = '$recolector'))
  5.     ORDER BY CASE l.estado WHEN 'C' THEN 1 WHEN 'T' THEN 2 ELSE 3 END";
  6.     $res_liquidadores = $this->cnn->query('0', $sql_liquidadores);
  7.     if (count($res_liquidadores) <= 0)
  8.       return $arr_liquidadores;
  9.     foreach ($res_liquidadores as $res)
  10.       $arr_liquidadores[] = $res;
PtatController->liquidadores_cofresi() in src/Controller/PtatController.php (line 6050)
  1.       else if ($id_mod == "13")
  2.       {
  3.         $pdv_cofresi = $this->pdv_cofresi($usuario,0);
  4.         $listaPdvs = array_column($pdv_cofresi, 'codigo');
  5.         $liquidadores_cofresi = $this->liquidadores_cofresi(implode(",", $listaPdvs), $usuario);
  6.         $novedades_liquidadores = $this->novedades_liquidadores();
  7.         $respuesta["pdv_cofresi"] = $pdv_cofresi;
  8.         $respuesta["liquidadores_cofresi"] = $liquidadores_cofresi;
  9.         $respuesta["novedades_liquidadores"] = $novedades_liquidadores;
  10.       }
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[42601]: Syntax error: 7 ERROR: error de sintaxis en o cerca de «)» LINE 10: WHERE l.punto_venta IN () AND ((l.estado = 'C' AND l.fec... ^

  1.         } else {
  2.             $code     = $exception->getCode();
  3.             $sqlState = null;
  4.         }
  5.         return new self($exception->getMessage(), $sqlState, $code, $exception);
  6.     }
  7. }
  1.         }
  2.         try {
  3.             $this->stmt->execute($params);
  4.         } catch (PDOException $exception) {
  5.             throw Exception::new($exception);
  6.         }
  7.         return new Result($this->stmt);
  8.     }
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 2927)
  1.     COALESCE(p.nombres,'')||' '||COALESCE(p.apellido1,'')||' '||COALESCE(p.apellido2,'') as nom_asesora
  2.     FROM liquidadores_vendedor l join personas p on p.documento=cast(ltrim(l.usuario,'CVP') as numeric)
  3.     WHERE l.punto_venta IN ($pdvs) AND ((l.estado = 'C' AND l.fecha_creacion >= CURRENT_TIMESTAMP - INTERVAL '3 days') 
  4.     OR (l.estado = 'T' AND l.recogedor = '$recolector'))
  5.     ORDER BY CASE l.estado WHEN 'C' THEN 1 WHEN 'T' THEN 2 ELSE 3 END";
  6.     $res_liquidadores = $this->cnn->query('0', $sql_liquidadores);
  7.     if (count($res_liquidadores) <= 0)
  8.       return $arr_liquidadores;
  9.     foreach ($res_liquidadores as $res)
  10.       $arr_liquidadores[] = $res;
PtatController->liquidadores_cofresi() in src/Controller/PtatController.php (line 6050)
  1.       else if ($id_mod == "13")
  2.       {
  3.         $pdv_cofresi = $this->pdv_cofresi($usuario,0);
  4.         $listaPdvs = array_column($pdv_cofresi, 'codigo');
  5.         $liquidadores_cofresi = $this->liquidadores_cofresi(implode(",", $listaPdvs), $usuario);
  6.         $novedades_liquidadores = $this->novedades_liquidadores();
  7.         $respuesta["pdv_cofresi"] = $pdv_cofresi;
  8.         $respuesta["liquidadores_cofresi"] = $liquidadores_cofresi;
  9.         $respuesta["novedades_liquidadores"] = $novedades_liquidadores;
  10.       }
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

PDOException

SQLSTATE[42601]: Syntax error: 7 ERROR: error de sintaxis en o cerca de «)» LINE 10: WHERE l.punto_venta IN () AND ((l.estado = 'C' AND l.fec... ^

  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.                     . ' Statement::bindParam() or Statement::bindValue() instead.',
  2.             );
  3.         }
  4.         try {
  5.             $this->stmt->execute($params);
  6.         } catch (PDOException $exception) {
  7.             throw Exception::new($exception);
  8.         }
  9.         return new Result($this->stmt);
  1.             $logger->startQuery($this->sql, $this->params, $this->types);
  2.         }
  3.         try {
  4.             return new Result(
  5.                 $this->stmt->execute($params),
  6.                 $this->conn,
  7.             );
  8.         } catch (Driver\Exception $ex) {
  9.             throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  10.         } finally {
  1.         if ($params === []) {
  2.             $params = null; // Workaround as long execute() exists and used internally.
  3.         }
  4.         return $this->execute($params);
  5.     }
  6.     /**
  7.      * Executes the statement with the currently bound parameters and return affected rows.
  8.      *
Statement->executeQuery() in src/Services/Conexion.php (line 781)
  1.       // $resultSet = $stmt->executeQuery();//execute();
  2.       /* try { */
  3.         // $resultSet_aux = $stmt->executeQuery();//execute();
  4.         // $resultSet = $resultSet_aux->fetchAllAssociative();//execute();
  5.         // Los parametros conservan las consultas preparadas en conexiones DBAL normales.
  6.         $resultSet = $stmt->executeQuery($params)->fetchAllAssociative();
  7.         $this->cnn->close();
  8.       /* } catch (\Throwable $th)
  9.       {
  10.       } */
  11.       // $this->log->logs("respuestaaa ",array($resultSet));
Conexion->query_normal() in src/Services/Conexion.php (line 739)
  1.               throw new \InvalidArgumentException('La conexion socket no admite parametros preparados.');
  2.             }
  3.             return $this->consulta_socket($con,$sql);
  4.             break; 
  5.           default:
  6.             return $this->query_normal($con,$sql,$params);
  7.             break;
  8.         }  
  9.       }
  10.     }  
  11.         
Conexion->query() in src/Controller/PtatController.php (line 2927)
  1.     COALESCE(p.nombres,'')||' '||COALESCE(p.apellido1,'')||' '||COALESCE(p.apellido2,'') as nom_asesora
  2.     FROM liquidadores_vendedor l join personas p on p.documento=cast(ltrim(l.usuario,'CVP') as numeric)
  3.     WHERE l.punto_venta IN ($pdvs) AND ((l.estado = 'C' AND l.fecha_creacion >= CURRENT_TIMESTAMP - INTERVAL '3 days') 
  4.     OR (l.estado = 'T' AND l.recogedor = '$recolector'))
  5.     ORDER BY CASE l.estado WHEN 'C' THEN 1 WHEN 'T' THEN 2 ELSE 3 END";
  6.     $res_liquidadores = $this->cnn->query('0', $sql_liquidadores);
  7.     if (count($res_liquidadores) <= 0)
  8.       return $arr_liquidadores;
  9.     foreach ($res_liquidadores as $res)
  10.       $arr_liquidadores[] = $res;
PtatController->liquidadores_cofresi() in src/Controller/PtatController.php (line 6050)
  1.       else if ($id_mod == "13")
  2.       {
  3.         $pdv_cofresi = $this->pdv_cofresi($usuario,0);
  4.         $listaPdvs = array_column($pdv_cofresi, 'codigo');
  5.         $liquidadores_cofresi = $this->liquidadores_cofresi(implode(",", $listaPdvs), $usuario);
  6.         $novedades_liquidadores = $this->novedades_liquidadores();
  7.         $respuesta["pdv_cofresi"] = $pdv_cofresi;
  8.         $respuesta["liquidadores_cofresi"] = $liquidadores_cofresi;
  9.         $respuesta["novedades_liquidadores"] = $novedades_liquidadores;
  10.       }
  1.         $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller = $event->getController();
  3.         $arguments = $event->getArguments();
  4.         // call controller
  5.         $response = $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this, $request, $type, $response, $event);
  9.             $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request = $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response = $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request, $response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/php81/serversoap/recaudos/vendor/autoload_runtime.php') in public/index.php (line 16)
  1. $method = $_SERVER['REQUEST_METHOD'];
  2. if($method == "OPTIONS") {
  3.     die();
  4. }
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  8. };

Logs

No log messages

Stack Traces 3

[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 10:     WHERE l.punto_venta IN () AND ((l.estado = 'C' AND l.fec...
                                     ^

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:2927)
  at App\Controller\PtatController->liquidadores_cofresi()
     (src/Controller/PtatController.php:6050)
  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 10:     WHERE l.punto_venta IN () AND ((l.estado = 'C' AND l.fec...
                                     ^

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:2927)
  at App\Controller\PtatController->liquidadores_cofresi()
     (src/Controller/PtatController.php:6050)
  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 10:     WHERE l.punto_venta IN () AND ((l.estado = 'C' AND l.fec...
                                     ^

  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:781)
  at App\Services\Conexion->query_normal()
     (src/Services/Conexion.php:739)
  at App\Services\Conexion->query()
     (src/Controller/PtatController.php:2927)
  at App\Controller\PtatController->liquidadores_cofresi()
     (src/Controller/PtatController.php:6050)
  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)