{"record":{"id":"ab6187ab1844e27b","repo":"phacility/phabricator","slug":"expected-valid-json-response-from-github-account-d","errorCode":null,"errorMessage":"Expected valid JSON response from GitHub account data request.","messagePattern":"Expected valid JSON response from GitHub account data request\\.","errorType":"exception","errorClass":"PhutilProxyException","httpStatus":null,"severity":"error","filePath":"src/applications/auth/adapter/PhutilGitHubAuthAdapter.php","lineNumber":70,"sourceCode":"  protected function loadOAuthAccountData() {\n    $uri = new PhutilURI('https://api.github.com/user');\n\n    $future = new HTTPSFuture($uri);\n\n    // NOTE: GitHub requires a User-Agent string.\n    $future->addHeader('User-Agent', __CLASS__);\n\n    // See T13485. Circa early 2020, GitHub has deprecated use of the\n    // \"access_token\" URI parameter.\n    $token_header = sprintf('token %s', $this->getAccessToken());\n    $future->addHeader('Authorization', $token_header);\n\n    list($body) = $future->resolvex();\n\n    try {\n      return phutil_json_decode($body);\n    } catch (PhutilJSONParserException $ex) {\n      throw new PhutilProxyException(\n        pht('Expected valid JSON response from GitHub account data request.'),\n        $ex);\n    }\n  }\n\n}\n","sourceCodeStart":52,"sourceCodeEnd":77,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/auth/adapter/PhutilGitHubAuthAdapter.php#L52-L77","documentation":"Error \"Expected valid JSON response from GitHub account data request.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/auth/adapter/PhutilGitHubAuthAdapter.php:70 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"}