{"record":{"id":"c32ebd4bffa24993","repo":"phacility/phabricator","slug":"expected-valid-json-response-from-amazon-account-d","errorCode":null,"errorMessage":"Expected valid JSON response from Amazon account data request.","messagePattern":"Expected valid JSON response from Amazon account data request\\.","errorType":"exception","errorClass":"PhutilProxyException","httpStatus":null,"severity":"error","filePath":"src/applications/auth/adapter/PhutilAmazonAuthAdapter.php","lineNumber":74,"sourceCode":"  }\n\n  public function getExtraTokenParameters() {\n    return array(\n      'grant_type' => 'authorization_code',\n    );\n  }\n\n  protected function loadOAuthAccountData() {\n    $uri = new PhutilURI('https://api.amazon.com/user/profile');\n    $uri->replaceQueryParam('access_token', $this->getAccessToken());\n\n    $future = new HTTPSFuture($uri);\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 Amazon account data request.'),\n        $ex);\n    }\n  }\n\n}\n","sourceCodeStart":56,"sourceCodeEnd":81,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/auth/adapter/PhutilAmazonAuthAdapter.php#L56-L81","documentation":"Error \"Expected valid JSON response from Amazon account data request.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/auth/adapter/PhutilAmazonAuthAdapter.php:74 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"}