{"record":{"id":"6bfbb2c6b6fd390b","repo":"alibaba/nacos","slug":"20004-6bfbb2","errorCode":"20004","errorMessage":"Config not exist, please publish Config first.","messagePattern":"Config not exist, please publish Config first\\.","errorType":"http","errorClass":"NacosApiException","httpStatus":404,"severity":"error","filePath":"config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java","lineNumber":172,"sourceCode":"    \n    /**\n     * Query configuration.\n     */\n    @Since(\"3.0.0\")\n    @GetMapping\n    @TpsControl(pointName = \"ConfigQuery\")\n    @Secured(action = ActionTypes.READ, signType = SignType.CONFIG, apiType = ApiType.ADMIN_API)\n    public Result<ConfigDetailInfo> getConfig(ConfigFormV3 configForm) throws NacosException {\n        configForm.validate();\n        // check namespaceId\n        String namespaceId = NamespaceUtil.processNamespaceParameter(configForm.getNamespaceId());\n        // check params\n        String dataId = configForm.getDataId();\n        String groupName = configForm.getGroupName();\n        ConfigAllInfo configAllInfo =\n            configInfoPersistService.findConfigAllInfo(dataId, groupName, namespaceId);\n        if (Objects.isNull(configAllInfo)) {\n            throw new NacosApiException(NacosException.NOT_FOUND, ErrorCode.RESOURCE_NOT_FOUND,\n                \"Config not exist, please publish Config first.\");\n        }\n        // decrypted\n        String encryptedDataKey = configAllInfo.getEncryptedDataKey();\n        Pair<String, String> pair = EncryptionHandler.decryptHandler(dataId, encryptedDataKey,\n            configAllInfo.getContent());\n        configAllInfo.setContent(pair.getSecond());\n        ConfigDetailInfo result = ResponseUtil.transferToConfigDetailInfo(configAllInfo);\n        return Result.success(result);\n    }\n    \n    /**\n     * Publish configuration.\n     */\n    @Since(\"3.0.0\")\n    @PostMapping\n    @TpsControl(pointName = \"ConfigPublish\")\n    @Secured(action = ActionTypes.WRITE, signType = SignType.CONFIG, apiType = ApiType.ADMIN_API)","sourceCodeStart":154,"sourceCodeEnd":190,"githubUrl":"https://github.com/alibaba/nacos/blob/9b989acdf181d00898f2e8839257bb2b2a3cefe3/config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java#L154-L190","documentation":"Error \"Config not exist, please publish Config first.\" thrown in alibaba/nacos.","triggerScenarios":"Thrown at config/src/main/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3.java:172 when the library encounters an invalid state.","commonSituations":"Operating on a config that has never been published.","solutions":["Verify the resource identifiers (namespace, name, version) and that the resource exists before retrying."],"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"}