{"record":{"id":"5a8f9239c8e72561","repo":"phacility/phabricator","slug":"color-key-s-is-not-a-valid-color-key-the-suppo","errorCode":null,"errorMessage":"Color key \"%s\" is not a valid color key. The supported color keys are: %s.","messagePattern":"Color key \"(.+?)\" is not a valid color key\\. The supported color keys are: (.+?)\\.","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/project/icon/PhabricatorProjectIconSet.php","lineNumber":461,"sourceCode":"    foreach ($config as $idx => $value) {\n      if (!is_array($value)) {\n        throw new Exception(\n          pht(\n            'Value for index \"%s\" should be a dictionary.',\n            $idx));\n      }\n\n      PhutilTypeSpec::checkMap(\n        $value,\n        array(\n          'key' => 'string',\n          'name' => 'string',\n          'default' => 'optional bool',\n        ));\n\n      $key = $value['key'];\n      if (!isset($available_keys[$key])) {\n        throw new Exception(\n          pht(\n            'Color key \"%s\" is not a valid color key. The supported color '.\n            'keys are: %s.',\n            $key,\n            implode(', ', $available_keys)));\n      }\n    }\n\n    $default = null;\n    $keys = array();\n    foreach ($config as $idx => $value) {\n      $key = $value['key'];\n      if (isset($keys[$key])) {\n        throw new Exception(\n          pht(\n            'Project colors must have unique keys, but two icons share the '.\n            'same key (\"%s\").',\n            $key));","sourceCodeStart":443,"sourceCodeEnd":479,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/project/icon/PhabricatorProjectIconSet.php#L443-L479","documentation":"Error \"Color key \"%s\" is not a valid color key. The supported color keys are: %s.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/project/icon/PhabricatorProjectIconSet.php:461 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"}