Skip to content

Instantly share code, notes, and snippets.

@kamaulynder
Created September 14, 2016 12:13
Show Gist options
  • Select an option

  • Save kamaulynder/ed74e9815a9b3e2dc1883a382f288525 to your computer and use it in GitHub Desktop.

Select an option

Save kamaulynder/ed74e9815a9b3e2dc1883a382f288525 to your computer and use it in GitHub Desktop.
[Response] {"message":"Trying to get property of non-object","status_code":500,"debug":{"line":25,"file":"/home/vagrant/rollcall/app/Traits/UserAccess.php","class":"ErrorException","trace":["#0 /home/vagrant/rollcall/app/Traits/UserAccess.php(25): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(8, 'Trying to get p...', '/home/vagrant/r...', 25, Array)","#1 /home/vagrant/rollcall/app/Http/Requests/User/GetUserRequest.php(20): RollCall\\Http\\Requests\\User\\GetUserRequest->isAdmin()","#2 [internal function]: RollCall\\Http\\Requests\\User\\GetUserRequest->authorize()","#3 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Container/Container.php(507): call_user_func_array(Array, Array)","#4 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Foundation/Http/FormRequest.php(108): Illuminate\\Container\\Container->call(Array)","#5 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Validation/ValidatesWhenResolvedTrait.php(22): Illuminate\\Foundation\\Http\\FormRequest->passesAuthorization()","#6 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Validation/ValidationServiceProvider.php(32): Illuminate\\Foundation\\Http\\FormRequest->validate()","#7 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Container/Container.php(1024): Illuminate\\Validation\\ValidationServiceProvider->Illuminate\\Validation\\{closure}(Object(RollCall\\Http\\Requests\\User\\DeleteUserRequest), Object(Illuminate\\Foundation\\Application))","#8 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Container/Container.php(989): Illuminate\\Container\\Container->fireCallbackArray(Object(RollCall\\Http\\Requests\\User\\DeleteUserRequest), Array)","#9 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Container/Container.php(650): Illuminate\\Container\\Container->fireResolvingCallbacks('RollCall\\\\Http\\\\R...', Object(RollCall\\Http\\Requests\\User\\DeleteUserRequest))","#10 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(674): Illuminate\\Container\\Container->make('RollCall\\\\Http\\\\R...', Array)","#11 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Routing/RouteDependencyResolverTrait.php(87): Illuminate\\Foundation\\Application->make('RollCall\\\\Http\\\\R...')","#12 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Routing/RouteDependencyResolverTrait.php(61): Illuminate\\Routing\\ControllerDispatcher->transformDependency(Object(ReflectionParameter), Array, Array)","#13 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Routing/RouteDependencyResolverTrait.php(44): Illuminate\\Routing\\ControllerDispatcher->resolveMethodDependencies(Array, Object(ReflectionMethod))","#14 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(162): Illuminate\\Routing\\ControllerDispatcher->resolveClassMethodDependencies(Array, Object(RollCall\\Http\\Controllers\\Api\\First\\UserController), 'delete')","#15 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(112): Illuminate\\Routing\\ControllerDispatcher->call(Object(RollCall\\Http\\Controllers\\Api\\First\\UserController), Object(Illuminate\\Routing\\Route), 'delete')","#16 [internal function]: Illuminate\\Routing\\ControllerDispatcher->Illuminate\\Routing\\{closure}(Object(Dingo\\Api\\Http\\Request))","#17 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): call_user_func(Object(Closure), Object(Dingo\\Api\\Http\\Request))","#18 [internal function]: Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Dingo\\Api\\Http\\Request))","#19 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): call_user_func(Object(Closure), Object(Dingo\\Api\\Http\\Request))","#20 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(114): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))","#21 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(69): Illuminate\\Routing\\ControllerDispatcher->callWithinStack(Object(RollCall\\Http\\Controllers\\Api\\First\\UserController), Object(Illuminate\\Routing\\Route), Object(Dingo\\Api\\Http\\Request), 'delete')","#22 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Routing/Route.php(203): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(Dingo\\Api\\Http\\Request), 'RollCall\\\\Http\\\\C...', 'delete')","#23 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Routing/Route.php(134): Illuminate\\Routing\\Route->runWithCustomDispatcher(Object(Dingo\\Api\\Http\\Request))","#24 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Routing/Router.php(708): Illuminate\\Routing\\Route->run(Object(Dingo\\Api\\Http\\Request))","#25 [internal function]: Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Dingo\\Api\\Http\\Request))","#26 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): call_user_func(Object(Closure), Object(Dingo\\Api\\Http\\Request))","#27 /home/vagrant/rollcall/vendor/dingo/api/src/Http/Middleware/Auth.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Dingo\\Api\\Http\\Request))","#28 [internal function]: Dingo\\Api\\Http\\Middleware\\Auth->handle(Object(Dingo\\Api\\Http\\Request), Object(Closure))","#29 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)","#30 [internal function]: Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Dingo\\Api\\Http\\Request))","#31 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): call_user_func(Object(Closure), Object(Dingo\\Api\\Http\\Request))","#32 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Routing/Router.php(710): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))","#33 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Routing/Router.php(675): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Dingo\\Api\\Http\\Request))","#34 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Routing/Router.php(635): Illuminate\\Routing\\Router->dispatchToRoute(Object(Dingo\\Api\\Http\\Request))","#35 /home/vagrant/rollcall/vendor/dingo/api/src/Routing/Adapter/Laravel.php(65): Illuminate\\Routing\\Router->dispatch(Object(Dingo\\Api\\Http\\Request))","#36 /home/vagrant/rollcall/vendor/dingo/api/src/Routing/Router.php(559): Dingo\\Api\\Routing\\Adapter\\Laravel->dispatch(Object(Dingo\\Api\\Http\\Request), 'v1')","#37 /home/vagrant/rollcall/vendor/dingo/api/src/Http/Middleware/Request.php(112): Dingo\\Api\\Routing\\Router->dispatch(Object(Dingo\\Api\\Http\\Request))","#38 [internal function]: Dingo\\Api\\Http\\Middleware\\Request->Dingo\\Api\\Http\\Middleware\\{closure}(Object(Dingo\\Api\\Http\\Request))","#39 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): call_user_func(Object(Closure), Object(Dingo\\Api\\Http\\Request))","#40 /home/vagrant/rollcall/vendor/barryvdh/laravel-cors/src/HandleCors.php(34): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Dingo\\Api\\Http\\Request))","#41 [internal function]: Barryvdh\\Cors\\HandleCors->handle(Object(Dingo\\Api\\Http\\Request), Object(Closure))","#42 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)","#43 /home/vagrant/rollcall/vendor/lucadegasperi/oauth2-server-laravel/src/Middleware/OAuthExceptionHandlerMiddleware.php(36): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Dingo\\Api\\Http\\Request))","#44 [internal function]: LucaDegasperi\\OAuth2Server\\Middleware\\OAuthExceptionHandlerMiddleware->handle(Object(Dingo\\Api\\Http\\Request), Object(Closure))","#45 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)","#46 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Dingo\\Api\\Http\\Request))","#47 [internal function]: Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Dingo\\Api\\Http\\Request), Object(Closure))","#48 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)","#49 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Dingo\\Api\\Http\\Request))","#50 [internal function]: Illuminate\\Session\\Middleware\\StartSession->handle(Object(Dingo\\Api\\Http\\Request), Object(Closure))","#51 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)","#52 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Dingo\\Api\\Http\\Request))","#53 [internal function]: Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Dingo\\Api\\Http\\Request), Object(Closure))","#54 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)","#55 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(59): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Dingo\\Api\\Http\\Request))","#56 [internal function]: Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Dingo\\Api\\Http\\Request), Object(Closure))","#57 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)","#58 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(44): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Dingo\\Api\\Http\\Request))","#59 [internal function]: Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode->handle(Object(Dingo\\Api\\Http\\Request), Object(Closure))","#60 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)","#61 [internal function]: Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Dingo\\Api\\Http\\Request))","#62 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): call_user_func(Object(Closure), Object(Dingo\\Api\\Http\\Request))","#63 /home/vagrant/rollcall/vendor/dingo/api/src/Http/Middleware/Request.php(113): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))","#64 /home/vagrant/rollcall/vendor/dingo/api/src/Http/Middleware/Request.php(89): Dingo\\Api\\Http\\Middleware\\Request->sendRequestThroughRouter(Object(Dingo\\Api\\Http\\Request))","#65 [internal function]: Dingo\\Api\\Http\\Middleware\\Request->handle(Object(Illuminate\\Http\\Request), Object(Closure))","#66 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)","#67 [internal function]: Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))","#68 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): call_user_func(Object(Closure), Object(Illuminate\\Http\\Request))","#69 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(122): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))","#70 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(87): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))","#71 /home/vagrant/rollcall/vendor/codeception/codeception/src/Codeception/Lib/Connector/Laravel5.php(55): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))","#72 /home/vagrant/rollcall/vendor/symfony/http-kernel/Client.php(79): Codeception\\Lib\\Connector\\Laravel5->handle(Object(Symfony\\Component\\HttpFoundation\\Request))","#73 /home/vagrant/rollcall/vendor/symfony/browser-kit/Client.php(315): Symfony\\Component\\HttpKernel\\Client->doRequest(Object(Symfony\\Component\\HttpFoundation\\Request))","#74 /home/vagrant/rollcall/vendor/codeception/codeception/src/Codeception/Module/REST.php(393): Symfony\\Component\\BrowserKit\\Client->request('DELETE', 'http://api.roll...', Array, Array, Array, '[]')","#75 /home/vagrant/rollcall/vendor/codeception/codeception/src/Codeception/Module/REST.php(292): Codeception\\Module\\REST->execute('DELETE', '/users/1', Array, Array)","#76 [internal function]: Codeception\\Module\\REST->sendDELETE('/users/1')","#77 /home/vagrant/rollcall/vendor/codeception/codeception/src/Codeception/Step.php(125): call_user_func_array(Array, Array)","#78 /home/vagrant/rollcall/vendor/codeception/codeception/src/Codeception/TestCase/Shared/Actor.php(67): Codeception\\Step->run()","#79 /home/vagrant/rollcall/vendor/codeception/codeception/src/Codeception/Scenario.php(94): Codeception\\TestCase\\Cest->runStep(Object(Codeception\\Step\\Action))","#80 /home/vagrant/rollcall/tests/api/ApiTester.php(2798): Codeception\\Scenario->runStep(Object(Codeception\\Step\\Action))","#81 /home/vagrant/rollcall/tests/api/UserCest.php(133): ApiTester->sendDELETE('/users/1')","#82 [internal function]: UserCest->deleteUser(Object(ApiTester), Object(Codeception\\Scenario))","#83 /home/vagrant/rollcall/vendor/codeception/codeception/src/Codeception/TestCase/Cest.php(136): call_user_func(Array, Object(ApiTester), Object(Codeception\\Scenario))","#84 /home/vagrant/rollcall/vendor/codeception/codeception/src/Codeception/TestCase/Cest.php(61): Codeception\\TestCase\\Cest->executeTestMethod(Object(ApiTester))","#85 [internal function]: Codeception\\TestCase\\Cest->testCodecept()","#86 /home/vagrant/rollcall/vendor/phpunit/phpunit/src/Framework/TestCase.php(866): ReflectionMethod->invokeArgs(Object(Codeception\\TestCase\\Cest), Array)","#87 /home/vagrant/rollcall/vendor/phpunit/phpunit/src/Framework/TestCase.php(743): PHPUnit_Framework_TestCase->runTest()","#88 /home/vagrant/rollcall/vendor/phpunit/phpunit/src/Framework/TestResult.php(609): PHPUnit_Framework_TestCase->runBare()","#89 /home/vagrant/rollcall/vendor/phpunit/phpunit/src/Framework/TestCase.php(699): PHPUnit_Framework_TestResult->run(Object(Codeception\\TestCase\\Cest))","#90 /home/vagrant/rollcall/vendor/phpunit/phpunit/src/Framework/TestSuite.php(722): PHPUnit_Framework_TestCase->run(Object(PHPUnit_Framework_TestResult))","#91 /home/vagrant/rollcall/vendor/codeception/codeception/src/Codeception/PHPUnit/Runner.php(100): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))","#92 /home/vagrant/rollcall/vendor/codeception/codeception/src/Codeception/SuiteManager.php(157): Codeception\\PHPUnit\\Runner->doEnhancedRun(Object(PHPUnit_Framework_TestSuite), Object(PHPUnit_Framework_TestResult), Array)","#93 /home/vagrant/rollcall/vendor/codeception/codeception/src/Codeception/Codecept.php(173): Codeception\\SuiteManager->run(Object(Codeception\\PHPUnit\\Runner), Object(PHPUnit_Framework_TestResult), Array)","#94 /home/vagrant/rollcall/vendor/codeception/codeception/src/Codeception/Codecept.php(156): Codeception\\Codecept->runSuite(Array, 'api', 'UserCest.php')","#95 /home/vagrant/rollcall/vendor/codeception/codeception/src/Codeception/Command/Run.php(187): Codeception\\Codecept->run('api', 'UserCest.php')","#96 /home/vagrant/rollcall/vendor/symfony/console/Command/Command.php(256): Codeception\\Command\\Run->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))","#97 /home/vagrant/rollcall/vendor/symfony/console/Application.php(844): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))","#98 /home/vagrant/rollcall/vendor/symfony/console/Application.php(189): Symfony\\Component\\Console\\Application->doRunCommand(Object(Codeception\\Command\\Run), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))","#99 /home/vagrant/rollcall/vendor/symfony/console/Application.php(120): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))","#100 /home/vagrant/rollcall/vendor/codeception/codeception/codecept(27): Symfony\\Component\\Console\\Application->run()","#101 {main}"]}}
[Headers] {"cache-control":["no-cache"],"content-type":["application/json"],"date":["Wed, 14 Sep 2016 05:22:28 GMT"],"Set-Cookie":[{}]}
[Status] 500
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment