{"record":{"id":"729b1dac4e4969e0","repo":"alibaba/nacos","slug":"20010","errorCode":"20010","errorMessage":"gray config version is over max count :{maxGrayVersionCount}","messagePattern":"gray config version is over max count :(.+?)","errorType":"http","errorClass":"NacosApiException","httpStatus":400,"severity":"error","filePath":"config/src/main/java/com/alibaba/nacos/config/server/service/ConfigOperationService.java","lineNumber":217,"sourceCode":"            configForm.getGrayVersion(), configForm.getGrayRuleExp(), configForm.getGrayPriority());\n        GrayRule grayRuleStruct = GrayRuleManager.constructGrayRule(localConfigGrayPersistInfo);\n        if (grayRuleStruct == null) {\n            throw new NacosApiException(HttpStatus.BAD_REQUEST.value(),\n                ErrorCode.CONFIG_GRAY_VERSION_INVALID,\n                ErrorCode.CONFIG_GRAY_VERSION_INVALID.getMsg());\n        }\n        \n        if (!grayRuleStruct.isValid()) {\n            throw new NacosApiException(HttpStatus.BAD_REQUEST.value(),\n                ErrorCode.CONFIG_GRAY_RULE_FORMAT_INVALID,\n                ErrorCode.CONFIG_GRAY_RULE_FORMAT_INVALID.getMsg());\n        }\n        \n        //version count check.\n        if (checkGrayVersionOverMaxCount(configForm.getDataId(), configForm.getGroup(),\n            configForm.getNamespaceId(),\n            configForm.getGrayName())) {\n            throw new NacosApiException(HttpStatus.BAD_REQUEST.value(),\n                ErrorCode.CONFIG_GRAY_OVER_MAX_VERSION_COUNT,\n                \"gray config version is over max count :\" + getMaxGrayVersionCount());\n        }\n        \n        ConfigInfo configInfo = new ConfigInfo(configForm.getDataId(), configForm.getGroup(),\n            configForm.getNamespaceId(), configForm.getAppName(), configForm.getContent());\n        // set old md5\n        if (StringUtils.isNotBlank(configRequestInfo.getCasMd5())) {\n            configInfo.setMd5(configRequestInfo.getCasMd5());\n        }\n        configInfo.setType(configForm.getType());\n        configInfo.setEncryptedDataKey(configForm.getEncryptedDataKey());\n        \n        ConfigOperateResult configOperateResult;\n        \n        if (StringUtils.isNotBlank(configRequestInfo.getCasMd5())) {\n            configOperateResult = configInfoGrayPersistService.insertOrUpdateGrayCas(configInfo,\n                configForm.getGrayName(),","sourceCodeStart":199,"sourceCodeEnd":235,"githubUrl":"https://github.com/alibaba/nacos/blob/9b989acdf181d00898f2e8839257bb2b2a3cefe3/config/src/main/java/com/alibaba/nacos/config/server/service/ConfigOperationService.java#L199-L235","documentation":"Error \"gray config version is over max count :{maxGrayVersionCount}\" thrown in alibaba/nacos.","triggerScenarios":"Thrown at config/src/main/java/com/alibaba/nacos/config/server/service/ConfigOperationService.java:217 when the library encounters an invalid state.","commonSituations":"Creating more gray versions than the configured maximum.","solutions":["Review the input and runtime state for gray version count limit, correct the reported problem, and retry."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9b989acdf181d00898f2e8839257bb2b2a3cefe3","analyzedAt":"2026-08-14T07:17:31.569Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}