{"record":{"id":"ab3e59baa497b48f","repo":"alibaba/nacos","slug":"10000-ab3e59","errorCode":"10000","errorMessage":"At least one of the parameters (groupName or namespaceId) must be provided","messagePattern":"At least one of the parameters \\(groupName or namespaceId\\) must be provided","errorType":"http","errorClass":"NacosApiException","httpStatus":400,"severity":"error","filePath":"config/src/main/java/com/alibaba/nacos/config/server/controller/v3/CapacityControllerV3.java","lineNumber":75,"sourceCode":"    private static final Logger LOGGER = LoggerFactory.getLogger(CapacityControllerV3.class);\n    \n    private final CapacityService capacityService;\n    \n    public CapacityControllerV3(CapacityService capacityService) {\n        this.capacityService = capacityService;\n    }\n    \n    /**\n     * Get capacity information.\n     */\n    @Since(\"3.0.0\")\n    @GetMapping\n    @Secured(resource = Constants.CAPACITY_CONTROLLER_V3_ADMIN_PATH, action = ActionTypes.READ,\n        signType = SignType.CONSOLE, apiType = ApiType.ADMIN_API)\n    public Result<Capacity> getCapacity(@RequestParam(required = false) String groupName,\n        @RequestParam(required = false) String namespaceId) throws NacosApiException {\n        if (StringUtils.isBlank(groupName) && StringUtils.isBlank(namespaceId)) {\n            throw new NacosApiException(HttpStatus.BAD_REQUEST.value(), ErrorCode.PARAMETER_MISSING,\n                \"At least one of the parameters (groupName or namespaceId) must be provided\");\n        }\n        \n        try {\n            Capacity capacity = capacityService.getCapacityWithDefault(groupName, namespaceId);\n            if (capacity == null) {\n                LOGGER.warn(\n                    \"[getCapacity] capacity not exist，need init groupName: {}, namespaceId: {}\",\n                    groupName,\n                    namespaceId);\n                capacityService.initCapacity(groupName, namespaceId);\n                capacity = capacityService.getCapacityWithDefault(groupName, namespaceId);\n            }\n            return Result.success(capacity);\n        } catch (Exception e) {\n            LOGGER.error(\n                \"[getCapacity] Failed to fetch capacity for groupName: {}, namespaceId: {}\",\n                groupName,","sourceCodeStart":57,"sourceCodeEnd":93,"githubUrl":"https://github.com/alibaba/nacos/blob/9b989acdf181d00898f2e8839257bb2b2a3cefe3/config/src/main/java/com/alibaba/nacos/config/server/controller/v3/CapacityControllerV3.java#L57-L93","documentation":"Error \"At least one of the parameters (groupName or namespaceId) must be provided\" thrown in alibaba/nacos.","triggerScenarios":"Thrown at config/src/main/java/com/alibaba/nacos/config/server/controller/v3/CapacityControllerV3.java:75 when the library encounters an invalid state.","commonSituations":"Calling the capacity API without groupName or namespaceId.","solutions":["Correct the invalid value for capacity query parameters to match the expected format or allowed set, then retry."],"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"}