{"record":{"id":"81215a8807c4e508","repo":"alibaba/nacos","slug":"invalid-fieldname-value-81215a","errorCode":null,"errorMessage":"Invalid {fieldName}: {value}","messagePattern":"Invalid (.+?): (.+?)","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"api/src/main/java/com/alibaba/nacos/api/ai/utils/RadModelValidator.java","lineNumber":534,"sourceCode":"    \n    private static void validateProvider(AgentProvider provider) {\n        if (provider == null) {\n            return;\n        }\n        validateLength(provider.getName(), 1, 128, \"provider.name\");\n        if (provider.getUrl() != null) {\n            validateAbsoluteUri(provider.getUrl(), \"provider.url\");\n        }\n    }\n    \n    private static void validateAbsoluteUri(String value, String fieldName) {\n        validateLength(value, 1, 2048, fieldName);\n        try {\n            if (!new URI(value).isAbsolute()) {\n                throw invalid(fieldName + \" must be an absolute URI\");\n            }\n        } catch (URISyntaxException e) {\n            throw new IllegalArgumentException(\"Invalid \" + fieldName + \": \" + value, e);\n        }\n    }\n    \n    private static void validateOptionalLength(String value, int maxLength, String fieldName) {\n        if (value != null && codePointLength(value) > maxLength) {\n            throw invalid(fieldName + \" exceeds \" + maxLength + \" characters\");\n        }\n    }\n    \n    private static void validateLength(String value, int minLength, int maxLength,\n        String fieldName) {\n        if (value == null) {\n            throw invalid(fieldName + \" is required\");\n        }\n        int length = codePointLength(value);\n        if (length < minLength || length > maxLength) {\n            throw invalid(fieldName + \" length must be between \" + minLength + \" and \"\n                + maxLength);","sourceCodeStart":516,"sourceCodeEnd":552,"githubUrl":"https://github.com/alibaba/nacos/blob/9b989acdf181d00898f2e8839257bb2b2a3cefe3/api/src/main/java/com/alibaba/nacos/api/ai/utils/RadModelValidator.java#L516-L552","documentation":"Error \"Invalid {fieldName}: {value}\" thrown in alibaba/nacos.","triggerScenarios":"Thrown at api/src/main/java/com/alibaba/nacos/api/ai/utils/RadModelValidator.java:534 when the library encounters an invalid state.","commonSituations":"RAD model validation rejected a field value outside its allowed range or pattern.","solutions":["Correct the invalid value for RAD model field validation 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"}