0

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

    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
4

1 回答 1

0

我追踪了错误,它根本与guzzle无关,它必须处理Google API。您需要从开发者控制台启用 Google+ API。否则你会得到这个错误,这基本上意味着你被禁止访问 Google+ 信息

于 2015-06-24T00:09:30.093 回答