{"record":{"id":"682056ce6aef4ba3","repo":"phacility/phabricator","slug":"expected-valid-json-response-from-google-account-d","errorCode":null,"errorMessage":"Expected valid JSON response from Google account data request.","messagePattern":"Expected valid JSON response from Google account data request\\.","errorType":"exception","errorClass":"PhutilProxyException","httpStatus":null,"severity":"error","filePath":"src/applications/auth/adapter/PhutilGoogleAuthAdapter.php","lineNumber":112,"sourceCode":"      'grant_type' => 'authorization_code',\n    );\n  }\n\n  protected function loadOAuthAccountData() {\n    $uri = new PhutilURI('https://www.googleapis.com/userinfo/v2/me');\n    $uri->replaceQueryParam('access_token', $this->getAccessToken());\n\n    $future = new HTTPSFuture($uri);\n    list($status, $body) = $future->resolve();\n\n    if ($status->isError()) {\n      throw $status;\n    }\n\n    try {\n      $result =  phutil_json_decode($body);\n    } catch (PhutilJSONParserException $ex) {\n      throw new PhutilProxyException(\n        pht('Expected valid JSON response from Google account data request.'),\n        $ex);\n    }\n\n    return $result;\n  }\n\n}\n","sourceCodeStart":94,"sourceCodeEnd":121,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/auth/adapter/PhutilGoogleAuthAdapter.php#L94-L121","documentation":"Error \"Expected valid JSON response from Google account data request.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/auth/adapter/PhutilGoogleAuthAdapter.php:112 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}