{"record":{"id":"33177b692ddeced9","repo":"phacility/phabricator","slug":"call-omits-required-type-parameter-specify-the","errorCode":null,"errorMessage":"Call omits required \"type\" parameter. Specify the type of message you want to send.","messagePattern":"Call omits required \"type\" parameter\\. Specify the type of message you want to send\\.","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/harbormaster/conduit/HarbormasterSendMessageConduitAPIMethod.php","lineNumber":527,"sourceCode":"      } 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) {\n      throw new Exception(\n        pht(\n          'Unable to load object \"%s\" to receive message.',\n          $receiver_name));\n    }\n\n    $is_target = ($receiver_object instanceof HarbormasterBuildTarget);\n    if ($is_target) {","sourceCodeStart":509,"sourceCodeEnd":545,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/harbormaster/conduit/HarbormasterSendMessageConduitAPIMethod.php#L509-L545","documentation":"Error \"Call omits required \"type\" parameter. Specify the type of message you want to send.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/harbormaster/conduit/HarbormasterSendMessageConduitAPIMethod.php:527 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"}