Homestead上的社交名媛失败了

时间:2015-06-23 16:14:56

标签: laravel-5 homestead laravel-socialite

我按照步骤安装社交网站,在我重定向回到网站后,我收到此错误。我试图找到根本原因但未能这样做

    in Middleware.php line 68
    at Middleware::GuzzleHttp\{closure}(object(Response)) in Promise.php line 199
    at Promise::callHandler('1', object(Response), array(object(Promise), object(Closure), null)) in Promise.php line 165
    at Promise::GuzzleHttp\Promise\{closure}(object(Response)) in FulfilledPromise.php line 39
    at FulfilledPromise::GuzzleHttp\Promise\{closure}() in TaskQueue.php line 60
    at TaskQueue->run() in CurlMultiHandler.php line 96
    at CurlMultiHandler->tick() in CurlMultiHandler.php line 123
    at CurlMultiHandler->execute(true) in Promise.php line 240
    at Promise->invokeWaitFn() in Promise.php line 217
    at Promise->waitIfPending() in Promise.php line 261
    at Promise->invokeWaitList() in Promise.php line 219
    at Promise->waitIfPending() in Promise.php line 62
    at Promise->wait() in Client.php line 130
    at Client->request('get', 'https://www.googleapis.com/plus/v1/people/me?', array('query' => array('prettyPrint' => 'false'), 'headers' => array('Accept' => 'application/json', 'Authorization' => 'Bearer ya29.mwEAinsjKtGZl4rV1gPXFJ2OjU1xpV1LRhTUYSQq7LN-8V71mmlRgFQxbScucm0VI00D--MbeqzyVQ'))) in Client.php line 88
    at Client->__call('get', array('https://www.googleapis.com/plus/v1/people/me?', array('query' => array('prettyPrint' => 'false'), 'headers' => array('Accept' => 'application/json', 'Authorization' => 'Bearer ya29.mwEAinsjKtGZl4rV1gPXFJ2OjU1xpV1LRhTUYSQq7LN-8V71mmlRgFQxbScucm0VI00D--MbeqzyVQ')))) in GoogleProvider.php line 86
    at Client->get('https://www.googleapis.com/plus/v1/people/me?', array('query' => array('prettyPrint' => 'false'), 'headers' => array('Accept' => 'application/json', 'Authorization' => 'Bearer ya29.mwEAinsjKtGZl4rV1gPXFJ2OjU1xpV1LRhTUYSQq7LN-8V71mmlRgFQxbScucm0VI00D--MbeqzyVQ'))) in GoogleProvider.php line 86
    at GoogleProvider->getUserByToken('ya29.mwEAinsjKtGZl4rV1gPXFJ2OjU1xpV1LRhTUYSQq7LN-8V71mmlRgFQxbScucm0VI00D--MbeqzyVQ') in AbstractProvider.php line 188
    at AbstractProvider->user() in AuthController.php line 85
    at AuthController->handleProviderCallback('google')
    at call_user_func_array(array(object(AuthController), 'handleProviderCallback'), array('provider' => 'google')) in Controller.php line 255
    at Controller->callAction('handleProviderCallback', array('provider' => 'google')) in ControllerDispatcher.php line 163
    at ControllerDispatcher->call(object(AuthController), object(Route), 'handleProviderCallback') in ControllerDispatcher.php line 111

1 个答案:

答案 0 :(得分:0)

我追踪到了这个错误,它与guzzle无关,它必须处理Google API。您需要从开发者控制台中获取Google+ API。否则您将收到此错误,这基本上意味着您无法访问Google+信息