{"record":{"id":"63ecc351ac49d5f4","repo":"phacility/phabricator","slug":"400-bad-request","errorCode":null,"errorMessage":"400 Bad Request","messagePattern":"400 Bad Request","errorType":"http","errorClass":"Aphront400Response","httpStatus":400,"severity":"error","filePath":"src/applications/conpherence/controller/ConpherenceViewController.php","lineNumber":30,"sourceCode":"  public function handleRequest(AphrontRequest $request) {\n    $user = $request->getUser();\n\n    $conpherence_id = $request->getURIData('id');\n    if (!$conpherence_id) {\n      return new Aphront404Response();\n    }\n    $query = id(new ConpherenceThreadQuery())\n      ->setViewer($user)\n      ->withIDs(array($conpherence_id))\n      ->needProfileImage(true)\n      ->needTransactions(true)\n      ->setTransactionLimit($this->getMainQueryLimit());\n\n    $before_transaction_id = $request->getInt('oldest_transaction_id');\n    $after_transaction_id = $request->getInt('newest_transaction_id');\n    $old_message_id = $request->getURIData('messageID');\n    if ($before_transaction_id && ($old_message_id || $after_transaction_id)) {\n      throw new Aphront400Response();\n    }\n    if ($old_message_id && $after_transaction_id) {\n      throw new Aphront400Response();\n    }\n\n    $marker_type = 'older';\n    if ($before_transaction_id) {\n      $query\n        ->setBeforeTransactionID($before_transaction_id);\n    }\n    if ($old_message_id) {\n      $marker_type = 'olderandnewer';\n      $query\n        ->setAfterTransactionID($old_message_id - 1);\n    }\n    if ($after_transaction_id) {\n      $marker_type = 'newer';\n      $query","sourceCodeStart":12,"sourceCodeEnd":48,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/conpherence/controller/ConpherenceViewController.php#L12-L48","documentation":"Error \"400 Bad Request\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/conpherence/controller/ConpherenceViewController.php:30 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"}