alibaba/nacos · error · AccessException

Please check dataId, group or namespaceId.

Error message

Please check dataId, group or namespaceId.

What it means

Error "Please check dataId, group or namespaceId." thrown in alibaba/nacos.

Source

Thrown at config/src/main/java/com/alibaba/nacos/config/server/service/HistoryService.java:132

    
    /**
     * Query configs list by namespace.
     */
    public List<ConfigInfoWrapper> getConfigListByNamespace(String namespaceId) {
        return configInfoPersistService.queryConfigInfoByNamespace(namespaceId);
    }
    
    /**
     * Check if the input dataId,group and namespaceId match the history config.
     */
    private void checkHistoryInfoPermission(ConfigHistoryInfo configHistoryInfo, String dataId,
        String group,
        String namespaceId) throws AccessException {
        if (!Objects.equals(configHistoryInfo.getDataId(), dataId)
            || !Objects.equals(configHistoryInfo.getGroup(),
                group)
            || !Objects.equals(configHistoryInfo.getTenant(), namespaceId)) {
            throw new AccessException("Please check dataId, group or namespaceId.");
        }
    }
    
    /**
     * Query the detailed config history info pair, including the original version and the updated version.
     */
    public ConfigHistoryInfoDetail getConfigHistoryInfoDetail(String dataId, String group,
        String namespaceId, Long nid)
        throws AccessException {
        ConfigHistoryInfo configHistoryInfo =
            historyConfigInfoPersistService.detailConfigHistory(nid);
        if (Objects.isNull(configHistoryInfo)) {
            return null;
        }
        
        // check if history config match the input
        checkHistoryInfoPermission(configHistoryInfo, dataId, group, namespaceId);
        

View on GitHub (pinned to 9b989acdf1)

Solutions

  1. Review the input and runtime state for history query parameters, correct the reported problem, and retry.

When it happens

Trigger: Thrown at config/src/main/java/com/alibaba/nacos/config/server/service/HistoryService.java:132 when the library encounters an invalid state.

Common situations: Querying config history with an invalid dataId, group, or namespaceId.


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