alibaba/nacos · error · NacosRuntimeException

-400

-400

Error message

parameter is invalid.

What it means

Error "parameter is invalid." thrown in alibaba/nacos.

Source

Thrown at config/src/main/java/com/alibaba/nacos/config/server/service/dump/disk/ConfigRawDiskService.java:69

        File.separator + "data" + File.separator + "tenant-gray-data";
    
    /**
     * Save configuration information to disk.
     */
    public void saveToDisk(String dataId, String group, String tenant, String content)
        throws IOException {
        File targetFile = targetFile(dataId, group, tenant);
        FileUtils.writeStringToFile(targetFile, content, ENCODE_UTF8);
    }
    
    /**
     * Returns the path of the server cache file.
     */
    static File targetFile(String dataId, String group, String tenant) {
        try {
            ParamUtils.checkParam(dataId, group, tenant);
        } catch (Exception e) {
            throw new NacosRuntimeException(NacosException.CLIENT_INVALID_PARAM,
                "parameter is invalid.");
        }
        // fix https://github.com/alibaba/nacos/issues/10067
        dataId = PathEncoderManager.getInstance().encode(dataId);
        group = PathEncoderManager.getInstance().encode(group);
        tenant = PathEncoderManager.getInstance().encode(tenant);
        File file = null;
        if (StringUtils.isBlank(tenant)) {
            file = new File(EnvUtil.getNacosHome(), BASE_DIR);
        } else {
            file = new File(EnvUtil.getNacosHome(), TENANT_BASE_DIR);
            file = new File(file, tenant);
        }
        file = new File(file, group);
        file = new File(file, dataId);
        return file;
    }
    

View on GitHub (pinned to 9b989acdf1)

Solutions

  1. Correct the invalid value for config raw disk parameter to match the expected format or allowed set, then retry.

When it happens

Trigger: Thrown at config/src/main/java/com/alibaba/nacos/config/server/service/dump/disk/ConfigRawDiskService.java:69 when the library encounters an invalid state.

Common situations: Disk dump service received an invalid parameter.


AI-assisted analysis of alibaba/nacos@9b989acdf1 (2026-08-14). Data as JSON: /api/errors/1600e6318bcb27d8. Report an issue: GitHub.