{"record":{"id":"1fb5b7543a9dd9b2","repo":"phacility/phabricator","slug":"receiver-object-of-class-s-is-not-a-valid-rec","errorCode":null,"errorMessage":"Receiver object (of class \"%s\") is not a valid receiver.","messagePattern":"Receiver object \\(of class \"(.+?)\"\\) is not a valid receiver\\.","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/harbormaster/conduit/HarbormasterSendMessageConduitAPIMethod.php","lineNumber":573,"sourceCode":"\n    if ($request->getValue('lint') !== null) {\n      throw new Exception(\n        pht(\n          'Call includes \"lint\" parameter. This parameter must be omitted '.\n          'when the receiver is not a Build Target.'));\n    }\n\n    $is_build = ($receiver_object instanceof HarbormasterBuild);\n    if ($is_build) {\n      return $this->sendToBuild($request, $message_type, $receiver_object);\n    }\n\n    $is_buildable = ($receiver_object instanceof HarbormasterBuildable);\n    if ($is_buildable) {\n      return $this->sendToBuildable($request, $message_type, $receiver_object);\n    }\n\n    throw new Exception(\n      pht(\n        'Receiver object (of class \"%s\") is not a valid receiver.',\n        get_class($receiver_object)));\n  }\n\n  private function sendToTarget(\n    ConduitAPIRequest $request,\n    $message_type,\n    HarbormasterBuildTarget $build_target) {\n    $viewer = $request->getViewer();\n\n    $save = array();\n\n    $lint_messages = $request->getValue('lint', array());\n    foreach ($lint_messages as $lint) {\n      $save[] = HarbormasterBuildLintMessage::newFromDictionary(\n        $build_target,\n        $lint);","sourceCodeStart":555,"sourceCodeEnd":591,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/harbormaster/conduit/HarbormasterSendMessageConduitAPIMethod.php#L555-L591","documentation":"Error \"Receiver object (of class \"%s\") is not a valid receiver.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/harbormaster/conduit/HarbormasterSendMessageConduitAPIMethod.php:573 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"}