{"record":{"id":"5cf31cd20facf8c0","repo":"alibaba/nacos","slug":"failed-to-update-plugin-config","errorCode":null,"errorMessage":"Failed to update plugin config: {}","messagePattern":"Failed to update plugin config: (.+?)","errorType":"exception","errorClass":"NacosException","httpStatus":null,"severity":"error","filePath":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java","lineNumber":387,"sourceCode":"                \"Failed to update plugin status: \" + httpRestResult.getMessage());\n        }\n    }\n    \n    @Override\n    public void updatePluginConfig(String pluginType, String pluginName, Map<String, String> config,\n        boolean localOnly) throws NacosException {\n        Map<String, String> params = new HashMap<>(8);\n        params.put(\"pluginType\", pluginType);\n        params.put(\"pluginName\", pluginName);\n        params.put(\"config\", JsonUtils.toJson(config));\n        params.put(\"localOnly\", String.valueOf(localOnly));\n        \n        HttpRequest httpRequest = new HttpRequest.Builder().setHttpMethod(HttpMethod.PUT)\n            .setPath(Constants.AdminApiPath.CORE_PLUGIN_ADMIN_PATH + \"/config\")\n            .setParamValue(params).build();\n        HttpRestResult<String> httpRestResult = clientHttpProxy.executeSyncHttpRequest(httpRequest);\n        if (!httpRestResult.ok()) {\n            throw new NacosException(httpRestResult.getCode(),\n                \"Failed to update plugin config: \" + httpRestResult.getMessage());\n        }\n    }\n    \n    @Override\n    public Map<String, Boolean> getPluginAvailability(String pluginType, String pluginName)\n        throws NacosException {\n        Map<String, String> params = new HashMap<>(8);\n        params.put(\"pluginType\", pluginType);\n        params.put(\"pluginName\", pluginName);\n        \n        HttpRequest httpRequest = new HttpRequest.Builder().setHttpMethod(HttpMethod.GET)\n            .setPath(Constants.AdminApiPath.CORE_PLUGIN_ADMIN_PATH + \"/availability\")\n            .setParamValue(params).build();\n        HttpRestResult<String> httpRestResult = clientHttpProxy.executeSyncHttpRequest(httpRequest);\n        Result<Map<String, Boolean>> result = JsonUtils.toObj(httpRestResult.getData(),\n            new NacosTypeReference<Result<Map<String, Boolean>>>() {\n            });","sourceCodeStart":369,"sourceCodeEnd":405,"githubUrl":"https://github.com/alibaba/nacos/blob/9b989acdf181d00898f2e8839257bb2b2a3cefe3/maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java#L369-L405","documentation":"Error \"Failed to update plugin config: {}\" thrown in alibaba/nacos.","triggerScenarios":"Thrown at maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/core/AbstractCoreMaintainerService.java:387 when the library encounters an invalid state.","commonSituations":"Updating a plugin's config through the maintainer client failed.","solutions":["Inspect the server logs for the underlying cause, fix it, and retry the operation."],"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"}