Skip to content

Instantly share code, notes, and snippets.

@kamaulynder
Created September 29, 2016 20:23
Show Gist options
  • Save kamaulynder/45df28adf4d9b71de6fe878c717f8b67 to your computer and use it in GitHub Desktop.
Save kamaulynder/45df28adf4d9b71de6fe878c717f8b67 to your computer and use it in GitHub Desktop.
[Request headers] {"Authorization":"Bearer orgadmintoken"}
[Request] GET http://api.rollcall.dev/api/v1/organizations/2
[Response] {"message":"Trying to get property of non-object","status_code":500,"debug":{"line":43,"file":"/home/vagrant/rollcall/app/Repositories/EloquentUserRepository.php","class":"ErrorException","trace":["#0 /home/vagrant/rollcall/app/Repositories/EloquentUserRepository.php(43): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(8, 'Trying to get p...', '/home/vagrant/r...', 43, Array)","#1 /home/vagrant/rollcall/app/Providers/OAuthServiceProvider.php(19): RollCall\\Repositories\\EloquentUserRepository->find('5')","#2 [internal function]: Rollcall\\Providers\\OAuthServiceProvider->Rollcall\\Providers\\{closure}('5')","#3 /home/vagrant/rollcall/vendor/dingo/api/src/Auth/Provider/OAuth2.php(111): call_user_func(Object(Closure), '5')","#4 /home/vagrant/rollcall/vendor/dingo/api/src/Auth/Provider/OAuth2.php(90): Dingo\\Api\\Auth\\Provider\\OAuth2->resolveResourceOwner(Object(League\\OAuth2\\Server\\Entity\\AccessTokenEntity))","#5 /home/vagrant/rollcall/vendor/dingo/api/src/Auth/Auth.php(82): Dingo\\Api\\Auth\\Provider\\OAuth2->authenticate(Object(Dingo\\Api\\Http\\Request), Object(Dingo\\Api\\Routing\\Route))","#6 /home/vagrant/rollcall/vendor/dingo/api/src/Http/Middleware/Auth.php(50): Dingo\\Api\\Auth\\Auth->authenticate(Array)","#7 [internal function]: Dingo\\Api\\Http\\Middleware\\Auth->handle(Object(Dingo\\Api\\Http\\Request), Object(Closure))","#8 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)","#9 [internal function]: Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Dingo\\Api\\Http\\Request))","#10 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): call_user_func(Object(Closure), Object(Dingo\\Api\\Http\\Request))","#11 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Routing/Router.php(710): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))","#12 /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))","#13 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Routing/Router.php(635): Illuminate\\Routing\\Router->dispatchToRoute(Object(Dingo\\Api\\Http\\Request))","#14 /home/vagrant/rollcall/vendor/dingo/api/src/Routing/Adapter/Laravel.php(65): Illuminate\\Routing\\Router->dispatch(Object(Dingo\\Api\\Http\\Request))","#15 /home/vagrant/rollcall/vendor/dingo/api/src/Routing/Router.php(559): Dingo\\Api\\Routing\\Adapter\\Laravel->dispatch(Object(Dingo\\Api\\Http\\Request), 'v1')","#16 /home/vagrant/rollcall/vendor/dingo/api/src/Http/Middleware/Request.php(112): Dingo\\Api\\Routing\\Router->dispatch(Object(Dingo\\Api\\Http\\Request))","#17 [internal function]: Dingo\\Api\\Http\\Middleware\\Request->Dingo\\Api\\Http\\Middleware\\{closure}(Object(Dingo\\Api\\Http\\Request))","#18 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): call_user_func(Object(Closure), Object(Dingo\\Api\\Http\\Request))","#19 /home/vagrant/rollcall/vendor/barryvdh/laravel-cors/src/HandleCors.php(34): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Dingo\\Api\\Http\\Request))","#20 [internal function]: Barryvdh\\Cors\\HandleCors->handle(Object(Dingo\\Api\\Http\\Request), Object(Closure))","#21 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)","#22 /home/vagrant/rollcall/vendor/lucadegasperi/oauth2-server-laravel/src/Middleware/OAuthExceptionHandlerMiddleware.php(36): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Dingo\\Api\\Http\\Request))","#23 [internal function]: LucaDegasperi\\OAuth2Server\\Middleware\\OAuthExceptionHandlerMiddleware->handle(Object(Dingo\\Api\\Http\\Request), Object(Closure))","#24 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)","#25 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Dingo\\Api\\Http\\Request))","#26 [internal function]: Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Dingo\\Api\\Http\\Request), Object(Closure))","#27 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)","#28 /home/vagrant/rollcall/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Dingo\\Api\\Http\\Request))","#29 [internal function]: Illuminate\\Session\\Middleware\\StartSession->handle(Object(Dingo\\Api\\Http\\Request), Object(Closure))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment