{"record":{"id":"7c7d354f8bbbc67f","repo":"phacility/phabricator","slug":"expected-valid-json-response-from-disqus-account-d","errorCode":null,"errorMessage":"Expected valid JSON response from Disqus account data request.","messagePattern":"Expected valid JSON response from Disqus account data request\\.","errorType":"exception","errorClass":"PhutilProxyException","httpStatus":null,"severity":"error","filePath":"src/applications/auth/adapter/PhutilDisqusAuthAdapter.php","lineNumber":78,"sourceCode":"      'grant_type' => 'authorization_code',\n    );\n  }\n\n  protected function loadOAuthAccountData() {\n    $uri = new PhutilURI('https://disqus.com/api/3.0/users/details.json');\n    $uri->replaceQueryParam('api_key', $this->getClientID());\n    $uri->replaceQueryParam('access_token', $this->getAccessToken());\n    $uri = (string)$uri;\n\n    $future = new HTTPSFuture($uri);\n    $future->setMethod('GET');\n    list($body) = $future->resolvex();\n\n    try {\n      $data = phutil_json_decode($body);\n      return $data['response'];\n    } catch (PhutilJSONParserException $ex) {\n      throw new PhutilProxyException(\n        pht('Expected valid JSON response from Disqus account data request.'),\n        $ex);\n    }\n  }\n\n}\n","sourceCodeStart":60,"sourceCodeEnd":85,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/auth/adapter/PhutilDisqusAuthAdapter.php#L60-L85","documentation":"Error \"Expected valid JSON response from Disqus account data request.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/auth/adapter/PhutilDisqusAuthAdapter.php:78 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"}