alibaba/nacos · error · NacosException
-400
-400
Error message
Cross-namespace clone is not supported by this implementation.
What it means
Error "Cross-namespace clone is not supported by this implementation." thrown in alibaba/nacos.
Source
Thrown at maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/ConfigMaintainerService.java:528
*
* @param sourceNamespaceId Source namespace ID (optional, defaults to "public").
* @param targetNamespaceId Target namespace ID (optional, defaults to "public").
* @param cloneInfos List of configurations to clone (required).
* @param srcUser Source user (optional).
* @param policy Conflict resolution policy (required).
* @return A map containing the clone result (e.g., success count, unrecognized data).
* @throws NacosException If the clone operation fails.
*/
@Since("3.2.3")
default Map<String, Object> cloneConfig(String sourceNamespaceId, String targetNamespaceId,
List<ConfigCloneInfo> cloneInfos, String srcUser, SameConfigPolicy policy)
throws NacosException {
String sourceNamespace = StringUtils.isBlank(sourceNamespaceId)
? Constants.DEFAULT_NAMESPACE_ID : sourceNamespaceId;
String targetNamespace = StringUtils.isBlank(targetNamespaceId)
? Constants.DEFAULT_NAMESPACE_ID : targetNamespaceId;
if (!StringUtils.equals(sourceNamespace, targetNamespace)) {
throw new NacosException(NacosException.CLIENT_INVALID_PARAM,
"Cross-namespace clone is not supported by this implementation.");
}
return cloneConfig(targetNamespace, cloneInfos, srcUser, policy);
}
/**
* Query configurations list by namespace.
*
* @param namespaceId Namespace ID (required).
* @return A list of configurations in the specified namespace.
* @throws NacosException If the namespace is invalid or the query fails.
*/
@Since("3.0.0")
List<ConfigBasicInfo> getConfigListByNamespace(String namespaceId) throws NacosException;
/**
* Get the listeners of a configuration by dataId and groupName.
*View on GitHub (pinned to 9b989acdf1)
Solutions
- Check the server/plugin configuration and enable the required module or use a supported alternative.
When it happens
Trigger: Thrown at maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/ConfigMaintainerService.java:528 when the library encounters an invalid state.
Common situations: Cloning configs across namespaces with an implementation that does not support it.
AI-assisted analysis of alibaba/nacos@9b989acdf1 (2026-08-14).
Data as JSON: /api/errors/cc01ca832ef86cb6.
Report an issue: GitHub.