{"record":{"id":"a13ebe69df4cbbcc","repo":"phacility/phabricator","slug":"call-omits-required-receiver-parameter-specify","errorCode":null,"errorMessage":"Call omits required \"receiver\" parameter. Specify the PHID of the object you want to send a message to.","messagePattern":"Call omits required \"receiver\" parameter\\. Specify the PHID of the object you want to send a message to\\.","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/harbormaster/conduit/HarbormasterSendMessageConduitAPIMethod.php","lineNumber":519,"sourceCode":"    $viewer = $request->getViewer();\n\n    $receiver_name = $request->getValue('receiver');\n\n    $build_target_phid = $request->getValue('buildTargetPHID');\n    if ($build_target_phid !== null) {\n      if ($receiver_name === null) {\n        $receiver_name = $build_target_phid;\n      } else {\n        throw new Exception(\n          pht(\n            'Call specifies both \"receiver\" and \"buildTargetPHID\". '.\n            'When using the modern \"receiver\" parameter, omit the '.\n            'deprecated \"buildTargetPHID\" parameter.'));\n      }\n    }\n\n    if ($receiver_name === null || !strlen($receiver_name)) {\n      throw new Exception(\n        pht(\n          'Call omits required \"receiver\" parameter. Specify the PHID '.\n          'of the object you want to send a message to.'));\n    }\n\n    $message_type = $request->getValue('type');\n    if ($message_type === null || !strlen($message_type)) {\n      throw new Exception(\n        pht(\n          'Call omits required \"type\" parameter. Specify the type of '.\n          'message you want to send.'));\n    }\n\n    $receiver_object = id(new PhabricatorObjectQuery())\n      ->setViewer($viewer)\n      ->withNames(array($receiver_name))\n      ->executeOne();\n    if (!$receiver_object) {","sourceCodeStart":501,"sourceCodeEnd":537,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/harbormaster/conduit/HarbormasterSendMessageConduitAPIMethod.php#L501-L537","documentation":"Error \"Call omits required \"receiver\" parameter. Specify the PHID of the object you want to send a message to.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/harbormaster/conduit/HarbormasterSendMessageConduitAPIMethod.php:519 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"}