Skip to content

Instantly share code, notes, and snippets.

@matheuslc
Created October 25, 2016 13:25
Show Gist options
  • Save matheuslc/4678724ff84f2abf561821c4f68bc512 to your computer and use it in GitHub Desktop.
Save matheuslc/4678724ff84f2abf561821c4f68bc512 to your computer and use it in GitHub Desktop.
Application Error
{
"error": "An exception occurred while executing 'UPDATE integration SET credentials = ?, refresh_token = ?, email = ? WHERE id = ?' with params [\"{\\\"access_token\\\":\\\"ya29.Ci-HA4IZAppr0aGqRdoOFMdz1uSpflAuowsKFB0ZxJvOcjWEqeFWSB4S3tOvrmm4vQ\\\",\\\"token_type\\\":\\\"Bearer\\\",\\\"expires_in\\\":3600,\\\"refresh_token\\\":\\\"1\\\\\\/mF2dxV7c_PiBg7Y5_7zEGfWENiZuck7lBC0nyj3rbyhUXHStNhZFB0IaY_THO7GL\\\",\\\"id_token\\\":\\\"eyJhbGciOiJSUzI1NiIsImtpZCI6ImFmNzNmMGViYWM4ZjBmYzBiYzBiNTk3ODVlYmEzN2Y0OWIwNGFmNTMifQ.eyJpc3MiOiJodHRwczovL2FjY291bnRzLmdvb2dsZS5jb20iLCJhdF9oYXNoIjoiLTN2aWZ5U0FTQUNvcmx2bnJWTFZVdyIsImF1ZCI6Ijk3MTE5MDc3MTQzOC01ampxN2UyN2I0ZXM0Y2ZwNGlwazQwNm8xZnZyZm9uMS5hcHBzLmdvb2dsZXVzZXJjb250ZW50LmNvbSIsInN1YiI6IjExNTk4MTQ1NDAzODMxNTk0MTMyNSIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJhenAiOiI5NzExOTA3NzE0MzgtNWpqcTdlMjdiNGVzNGNmcDRpcGs0MDZvMWZ2cmZvbjEuYXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iLCJoZCI6InNvY2lhbGJhc2UuY29tLmJyIiwiZW1haWwiOiJtYXRoZXVzLmNhcm1vQHNvY2lhbGJhc2UuY29tLmJyIiwiaWF0IjoxNDc3NDAxNzM0LCJleHAiOjE0Nzc0MDUzMzR9.RicGYgqJnaIRfbJQHfcH6MnjqFqkn4TNYpsoJHajMjhxV5xSqfP938cf6w6ixFPmYeA6_wWwyMoaDIZIKQETL6PMSLX32GZ5FPjMIITckCCMUG5wvmcqhrxkDG9zNaKw56XHKeZew555nojVYHAUTEIjkSQHseWPTnkBZthmfrcMMvQfMgvBUtvpiKVlStgZC0Ksbxls2EHdIfZBXa_nor1omDVcR-zA8DzoeLZwgAsXisYJM7RatjIhUGJOUE0OSfZ4KTUhhrkF1H9B7o_Rge0zfLx5vcwVy_cjEncCF7wYYNzURI-tHlAloBUOcxOKC2YUFRKguBYylm0-LPExmA\\\",\\\"created\\\":1477401734}\", \"1\\/mF2dxV7c_PiBg7Y5_7zEGfWENiZuck7lBC0nyj3rbyhUXHStNhZFB0IaY_THO7GL\", \"matheus.carmo@socialbase.com.br\", 3]:\n\nSQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'refresh_token' at row 1",
"code": 500,
"stack": "#0 /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(128): Doctrine\\DBAL\\Driver\\AbstractMySQLDriver->convertException('An exception oc...', Object(Doctrine\\DBAL\\Driver\\PDOException))\n#1 /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(996): Doctrine\\DBAL\\DBALException::driverExceptionDuringQuery(Object(Doctrine\\DBAL\\Driver\\PDOMySql\\Driver), Object(Doctrine\\DBAL\\Driver\\PDOException), 'UPDATE integrat...', Array)\n#2 /var/www/html/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php(480): Doctrine\\DBAL\\Connection->executeUpdate('UPDATE integrat...', Array, Array)\n#3 /var/www/html/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php(366): Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister->updateTable(Object(SocialBase\\Integrations\\Integration), 'integration', Array, NULL)\n#4 /var/www/html/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(1069): Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister->update(Object(SocialBase\\Integrations\\Integration))\n#5 /var/www/html/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(384): Doctrine\\ORM\\UnitOfWork->executeUpdates(Object(Doctrine\\ORM\\Mapping\\ClassMetadata))\n#6 /var/www/html/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(356): Doctrine\\ORM\\UnitOfWork->commit(Object(SocialBase\\Integrations\\Integration))\n#7 /var/www/html/src/Integrations/Persistence/Doctrine/IntegrationRepository.php(51): Doctrine\\ORM\\EntityManager->flush(Object(SocialBase\\Integrations\\Integration))\n#8 /var/www/html/storage/cache/di/Project255a74ab21531c9e70517f18f0182dcaServiceContainer.php(29774): SocialBase\\Integrations\\Persistence\\Doctrine\\IntegrationRepository->save(Object(SocialBase\\Integrations\\Integration))\n#9 /var/www/html/src/Integrations/GoogleFactory.php(348): SocialBaseIntegrationsPersistenceDoctrineIntegrationRepository_000000007a3d0ed2000000004ff71d68->save(Object(SocialBase\\Integrations\\Integration))\n#10 /var/www/html/src/Integrations/GoogleFactory.php(83): SocialBase\\Integrations\\GoogleFactory->updateIntegration()\n#11 /var/www/html/src/Integrations/IntegrationService.php(55): SocialBase\\Integrations\\GoogleFactory->createInstance(Object(Symfony\\Component\\HttpFoundation\\Request))\n#12 /var/www/html/storage/cache/di/Project255a74ab21531c9e70517f18f0182dcaServiceContainer.php(30124): SocialBase\\Integrations\\IntegrationService->getData(Object(SocialBase\\Applications\\Application\\Persistence\\Application), Object(Symfony\\Component\\HttpFoundation\\Request))\n#13 /var/www/html/src/Applications/Application/ApplicationsManager.php(129): SocialBaseIntegrationsIntegrationService_000000007a3d0ed0000000004ff71d68->getData(Object(SocialBase\\Applications\\Application\\Persistence\\Application), Object(Symfony\\Component\\HttpFoundation\\Request))\n#14 /var/www/html/src/Applications/Application/ApplicationsController.php(134): SocialBase\\Applications\\Application\\ApplicationsManager->getData(Object(SocialBase\\Applications\\Application\\Persistence\\Application), Object(Symfony\\Component\\HttpFoundation\\Request))\n#15 [internal function]: SocialBase\\Applications\\Application\\ApplicationsController->getData(Object(Symfony\\Component\\HttpFoundation\\Request), Object(SocialBase\\Applications\\Application\\Persistence\\Application))\n#16 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(144): call_user_func_array(Array, Array)\n#17 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(64): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw(Object(Symfony\\Component\\HttpFoundation\\Request), 1)\n#18 /var/www/html/vendor/silex/silex/src/Silex/Application.php(586): Symfony\\Component\\HttpKernel\\HttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#19 /var/www/html/vendor/silex/silex/src/Silex/Application.php(563): Silex\\Application->handle(Object(Symfony\\Component\\HttpFoundation\\Request))\n#20 /var/www/html/web/index.php(25): Silex\\Application->run()\n#21 {main}"
}
@nathanmarcos
Copy link

Corrigido. Atualiza o branch e roda migration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment