{"record":{"id":"56e5ca07f8547398","repo":"phacility/phabricator","slug":"configuration-key-s-is-of-type-s-specify-it","errorCode":null,"errorMessage":"Configuration key \"%s\" is of type \"%s\". Specify it in JSON.","messagePattern":"Configuration key \"(.+?)\" is of type \"(.+?)\"\\. Specify it in JSON\\.","errorType":"console","errorClass":"PhutilArgumentUsageException","httpStatus":null,"severity":"error","filePath":"src/applications/config/management/PhabricatorConfigManagementSetWorkflow.php","lineNumber":107,"sourceCode":"      } catch (PhabricatorConfigValidationException $ex) {\n        throw new PhutilArgumentUsageException($ex->getMessage());\n      }\n    } else {\n      // NOTE: For now, this handles both \"wild\" values and custom types.\n      $type = $option->getType();\n      switch ($type) {\n        default:\n          $value = json_decode($value, true);\n          if (!is_array($value)) {\n            switch ($type) {\n              default:\n                $message = pht(\n                  'Configuration key \"%s\" is of type \"%s\". Specify it in JSON.',\n                  $key,\n                  $type);\n                break;\n            }\n            throw new PhutilArgumentUsageException($message);\n          }\n          break;\n      }\n    }\n\n    $use_database = $args->getArg('database');\n    if ($option->getLocked() && $use_database) {\n      throw new PhutilArgumentUsageException(\n        pht(\n          'Config key \"%s\" is locked and can only be set in local '.\n          'configuration. To learn more, see \"%s\" in the documentation.',\n          $key,\n          pht('Configuration Guide: Locked and Hidden Configuration')));\n    }\n\n    try {\n      $option->getGroup()->validateOption($option, $value);\n    } catch (PhabricatorConfigValidationException $validation) {","sourceCodeStart":89,"sourceCodeEnd":125,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/config/management/PhabricatorConfigManagementSetWorkflow.php#L89-L125","documentation":"Error \"Configuration key \"%s\" is of type \"%s\". Specify it in JSON.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/config/management/PhabricatorConfigManagementSetWorkflow.php:107 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"}