Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packets out of order #431

Open
alsohi24 opened this issue Sep 18, 2021 · 1 comment
Open

Packets out of order #431

alsohi24 opened this issue Sep 18, 2021 · 1 comment

Comments

@alsohi24
Copy link

alsohi24 commented Sep 18, 2021

Hello everyone. I'm trying to call an stored procedure but apparently it doesn't work when i use cursor inside.

DreamFactory Instance

DreamFactory Version: 2.14.0
System Database: mysql

Server

Operating System: linux
Release: 4.15.0-1021-aws
Version: 21-Ubuntu SMP Tue Aug 28 10:23:07 UTC 2018
Machine: x86_64
PHP Version: 7.1.30
PHP Server API: Apache 2.0 Handler

{"statusCode":500,"body":"{\\"error\\":{\\"code\\":500,\\"context\\":null,\\"message\\":\\"Failed to call database stored procedure.\\\\nPackets out of order. Expected 1 received 12. Packet size=75\\",\\"trace\\":[\\"0 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/dreamfactory/df-sqldb/src/Resources/StoredProcedure.php(258): DreamFactory\\\\\\\\Core\\\\\\\\SqlDb\\\\\\\\Resources\\\\\\\\StoredProcedure->callProcedure()\\",\\"1 [internal function]: DreamFactory\\\\\\\\Core\\\\\\\\SqlDb\\\\\\\\Resources\\\\\\\\StoredProcedure->handlePOST()\\",\\"2 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Components/RestHandler.php(335): call_user_func(Array)\\",\\"3 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Components/RestHandler.php(197): DreamFactory\\\\\\\\Core\\\\\\\\Components\\\\\\\\RestHandler->processRequest()\\",\\"4 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Components/RestHandler.php(254): DreamFactory\\\\\\\\Core\\\\\\\\Components\\\\\\\\RestHandler->handleRequest(Object(DreamFactory\\\\\\\\Core\\\\\\\\Utility\\\\\\\\ServiceRequest), 'procedure...')\\",\\"5 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Components/RestHandler.php(172): DreamFactory\\\\\\\\Core\\\\\\\\Components\\\\\\\\RestHandler->handleResource(Array)\\",\\"6 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Services/BaseRestService.php(146): DreamFactory\\\\\\\\Core\\\\\\\\Components\\\\\\\\RestHandler->handleRequest(Object(DreamFactory\\\\\\\\Core\\\\\\\\Utility\\\\\\\\ServiceRequest), '_proc/indicador...')\\",\\"7 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Services/ServiceManager.php(496): DreamFactory\\\\\\\\Core\\\\\\\\Services\\\\\\\\BaseRestService->handleRequest(Object(DreamFactory\\\\\\\\Core\\\\\\\\Utility\\\\\\\\ServiceRequest), '_proc/indicador...')\\",\\"8 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(221): DreamFactory\\\\\\\\Core\\\\\\\\Services\\\\\\\\ServiceManager->handleServiceRequest(Object(DreamFactory\\\\\\\\Core\\\\\\\\Utility\\\\\\\\ServiceRequest), 'mydb', '_proc/indicador...', false)\\",\\"9 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Http/Controllers/RestController.php(159): Illuminate\\\\\\\\Support\\\\\\\\Facades\\\\\\\\Facade::__callStatic('handleServiceRe...', Array)\\",\\"10 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Http/Controllers/RestController.php(118): DreamFactory\\\\\\\\Core\\\\\\\\Http\\\\\\\\Controllers\\\\\\\\RestController->handleServiceRequest(Object(DreamFactory\\\\\\\\Core\\\\\\\\Utility\\\\\\\\ServiceRequest), 'mydb', '_proc/indicador...')\\",\\"11 [internal function]: DreamFactory\\\\\\\\Core\\\\\\\\Http\\\\\\\\Controllers\\\\\\\\RestController->handleVersionedService('v2', 'mydb', '_proc/indicador...')\\",\\"12 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): call_user_func_array(Array, Array)\\",\\"13 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\\\\\\\\Routing\\\\\\\\Controller->callAction('handleVersioned...', Array)\\",\\"14 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Route.php(212): Illuminate\\\\\\\\Routing\\\\\\\\ControllerDispatcher->dispatch(Object(Illuminate\\\\\\\\Routing\\\\\\\\Route), Object(DreamFactory\\\\\\\\Core\\\\\\\\Http\\\\\\\\Controllers\\\\\\\\RestController), 'handleVersioned...')\\",\\"15 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Route.php(169): Illuminate\\\\\\\\Routing\\\\\\\\Route->runController()\\",\\"16 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(658): Illuminate\\\\\\\\Routing\\\\\\\\Route->run()\\",\\"17 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\\\\\\\\Routing\\\\\\\\Router->Illuminate\\\\\\\\Routing\\\\\\\\{closure}(Object(Illuminate\\\\\\\\Http\\\\\\\\Request))\\",\\"18 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Http/Middleware/AccessCheck.php(62): Illuminate\\\\\\\\Routing\\\\\\\\Pipeline->Illuminate\\\\\\\\Routing\\\\\\\\{closure}(Object(Illuminate\\\\\\\\Http\\\\\\\\Request))\\",\\"19 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): DreamFactory\\\\\\\\Core\\\\\\\\Http\\\\\\\\Middleware\\\\\\\\AccessCheck->handle(Object(Illuminate\\\\\\\\Http\\\\\\\\Request), Object(Closure))\\",\\"20 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\\\\\\\Pipeline\\\\\\\\Pipeline->Illuminate\\\\\\\\Pipeline\\\\\\\\{closure}(Object(Illuminate\\\\\\\\Http\\\\\\\\Request))\\",\\"21 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Http/Middleware/AuthCheck.php(232): Illuminate\\\\\\\\Routing\\\\\\\\Pipeline->Illuminate\\\\\\\\Routing\\\\\\\\{closure}(Object(Illuminate\\\\\\\\Http\\\\\\\\Request))\\",\\"22 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): DreamFactory\\\\\\\\Core\\\\\\\\Http\\\\\\\\Middleware\\\\\\\\AuthCheck->handle(Object(Illuminate\\\\\\\\Http\\\\\\\\Request), Object(Closure))\\",\\"23 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\\\\\\\Pipeline\\\\\\\\Pipeline->Illuminate\\\\\\\\Pipeline\\\\\\\\{closure}(Object(Illuminate\\\\\\\\Http\\\\\\\\Request))\\",\\"24 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Http/Middleware/VerbOverrides.php(42): Illuminate\\\\\\\\Routing\\\\\\\\Pipeline->Illuminate\\\\\\\\Routing\\\\\\\\{closure}(Object(Illuminate\\\\\\\\Http\\\\\\\\Request))\\",\\"25 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): DreamFactory\\\\\\\\Core\\\\\\\\Http\\\\\\\\Middleware\\\\\\\\VerbOverrides->handle(Object(Illuminate\\\\\\\\Http\\\\\\\\Request), Object(Closure))\\",\\"26 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\\\\\\\Pipeline\\\\\\\\Pipeline->Illuminate\\\\\\\\Pipeline\\\\\\\\{closure}(Object(Illuminate\\\\\\\\Http\\\\\\\\Request))\\",\\"27 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/barryvdh/laravel-cors/src/HandleCors.php(37): Illuminate\\\\\\\\Routing\\\\\\\\Pipeline->Illuminate\\\\\\\\Routing\\\\\\\\{closure}(Object(Illuminate\\\\\\\\Http\\\\\\\\Request))\\",\\"28 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Barryvdh\\\\\\\\Cors\\\\\\\\HandleCors->handle(Object(Illuminate\\\\\\\\Http\\\\\\\\Request), Object(Closure))\\",\\"29 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\\\\\\\Pipeline\\\\\\\\Pipeline->Illuminate\\\\\\\\Pipeline\\\\\\\\{closure}(Object(Illuminate\\\\\\\\Http\\\\\\\\Request))\\",\\"30 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\\\\\\\\Routing\\\\\\\\Pipeline->Illuminate\\\\\\\\Routing\\\\\\\\{closure}(Object(Illuminate\\\\\\\\Http\\\\\\\\Request))\\",\\"31 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(660): Illuminate\\\\\\\\Pipeline\\\\\\\\Pipeline->then(Object(Closure))\\",\\"32 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(635): Illuminate\\\\\\\\Routing\\\\\\\\Router->runRouteWithinStack(Object(Illuminate\\\\\\\\Routing\\\\\\\\Route), Object(Illuminate\\\\\\\\Http\\\\\\\\Request))\\",\\"33 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(601): Illuminate\\\\\\\\Routing\\\\\\\\Router->runRoute(Object(Illuminate\\\\\\\\Http\\\\\\\\Request), Object(Illuminate\\\\\\\\Routing\\\\\\\\Route))\\",\\"34 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(590): Illuminate\\\\\\\\Routing\\\\\\\\Router->dispatchToRoute(Object(Illuminate\\\\\\\\Http\\\\\\\\Request))\\",\\"35 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(176): Illuminate\\\\\\\\Routing\\\\\\\\Router->dispatch(Object(Illuminate\\\\\\\\Http\\\\\\\\Request))\\",\\"36 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\\\\\\\\Foundation\\\\\\\\Http\\\\\\\\Kernel->Illuminate\\\\\\\\Foundation\\\\\\\\Http\\\\\\\\{closure}(Object(Illuminate\\\\\\\\Http\\\\\\\\Request))\\",\\"37 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\\\\\\\Routing\\\\\\\\Pipeline->Illuminate\\\\\\\\Routing\\\\\\\\{closure}(Object(Illuminate\\\\\\\\Http\\\\\\\\Request))\\",\\"38 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\\\\\\\Foundation\\\\\\\\Http\\\\\\\\Middleware\\\\\\\\ValidatePostSize->handle(Object(Illuminate\\\\\\\\Http\\\\\\\\Request), Object(Closure))\\",\\"39 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\\\\\\\Pipeline\\\\\\\\Pipeline->Illuminate\\\\\\\\Pipeline\\\\\\\\{closure}(Object(Illuminate\\\\\\\\Http\\\\\\\\Request))\\",\\"40 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(46): Illuminate\\\\\\\\Routing\\\\\\\\Pipeline->Illuminate\\\\\\\\Routing\\\\\\\\{closure}(Object(Illuminate\\\\\\\\Http\\\\\\\\Request))\\",\\"41 /home/ubuntu/dreamfactory-2.14.1-13/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\\\\\\\Foundation\\\\\\\\Http\\\\\\\\Middleware\\\\\\\\CheckForMaintenanceMode->handl...

@alsohi24
Copy link
Author

I tried this but it didn't work either.
And I don't know if using temporary tables is a good idea. But it would be interesting to know the reason for the problem.
dfBuf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant