{"record":{"id":"3d9513796fcbdd26","repo":"alibaba/nacos","slug":"invalid-transport-transport","errorCode":null,"errorMessage":"Invalid transport: {transport}","messagePattern":"Invalid transport: (.+?)","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"api/src/main/java/com/alibaba/nacos/api/ai/utils/AgentValidationUtils.java","lineNumber":188,"sourceCode":"     * @throws IllegalArgumentException when invalid or reserved\n     */\n    public static void validateNonLatestLabel(String label) {\n        validateLabel(label);\n        if (\"latest\".equals(label)) {\n            throw new IllegalArgumentException(\"The latest label is server-managed\");\n        }\n    }\n    \n    /**\n     * Validate a transport token without changing its case.\n     *\n     * @param transport transport token\n     * @throws IllegalArgumentException when invalid\n     */\n    public static void validateTransport(String transport) {\n        if (transport == null || transport.length() > MAX_TRANSPORT_LENGTH\n            || !TRANSPORT_PATTERN.matcher(transport).matches()) {\n            throw new IllegalArgumentException(\"Invalid transport: \" + transport);\n        }\n    }\n    \n    /**\n     * Validate a Version content digest.\n     *\n     * @param contentDigest content digest\n     * @throws IllegalArgumentException when invalid\n     */\n    public static void validateContentDigest(String contentDigest) {\n        if (contentDigest == null || !CONTENT_DIGEST_PATTERN.matcher(contentDigest).matches()) {\n            throw new IllegalArgumentException(\"Invalid contentDigest: \" + contentDigest);\n        }\n    }\n    \n    /**\n     * Validate a descriptor media type.\n     *","sourceCodeStart":170,"sourceCodeEnd":206,"githubUrl":"https://github.com/alibaba/nacos/blob/9b989acdf181d00898f2e8839257bb2b2a3cefe3/api/src/main/java/com/alibaba/nacos/api/ai/utils/AgentValidationUtils.java#L170-L206","documentation":"Error \"Invalid transport: {transport}\" thrown in alibaba/nacos.","triggerScenarios":"Thrown at api/src/main/java/com/alibaba/nacos/api/ai/utils/AgentValidationUtils.java:188 when the library encounters an invalid state.","commonSituations":"Validating an endpoint with a transport value that fails the allowed pattern.","solutions":["Correct the invalid value for transport 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"}