{"record":{"id":"2b56a1043f025886","repo":"alibaba/spring-ai-alibaba","slug":"unsupported-http-method-method","errorCode":null,"errorMessage":"Unsupported HTTP method: + method","messagePattern":"Unsupported HTTP method: \\+ method","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":500,"severity":"error","filePath":"spring-ai-alibaba-admin/spring-ai-alibaba-admin-server-core/src/main/java/com/alibaba/cloud/ai/studio/core/base/manager/HttpClientManager.java","lineNumber":591,"sourceCode":"\t\t\t\trequest = putRequest;\n\t\t\t\tbreak;\n\t\t\tcase DELETE:\n\t\t\t\tif (body != null && form != null && !form.isEmpty()) {\n\t\t\t\t\tHttpDeleteWithBody deleteRequest = new HttpDeleteWithBody(encodedUrl);\n\t\t\t\t\tsetEntityByType(deleteRequest, MapUtils.getString(body, \"type\"), form);\n\t\t\t\t\trequest = deleteRequest;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\trequest = new HttpDelete(encodedUrl);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase PATCH:\n\t\t\t\tHttpPatch patchRequest = new HttpPatch(encodedUrl);\n\t\t\t\tsetEntityByType(patchRequest, MapUtils.getString(body, \"type\"), form);\n\t\t\t\trequest = patchRequest;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new IllegalArgumentException(\"Unsupported HTTP method: \" + method);\n\t\t}\n\t\taddHeaderForAPINode(request, header);\n\t\t// Set timeout configuration\n\t\tif (timeoutConfig != null && timeoutConfig.getRead() != null) {\n\t\t\tRequestConfig requestConfig = RequestConfig.custom()\n\t\t\t\t.setConnectTimeout(timeoutConfig.getRead() * 1000)\n\t\t\t\t.setConnectionRequestTimeout(timeoutConfig.getRead() * 1000)\n\t\t\t\t.setSocketTimeout(timeoutConfig.getRead() * 1000)\n\t\t\t\t.build();\n\t\t\trequest.setConfig(requestConfig);\n\t\t}\n\t\treturn request;\n\t}\n\n\t/**\n\t * Builds complete URL with encoded content\n\t */\n\tprivate String buildUrl(String url, String encodedContent) {","sourceCodeStart":573,"sourceCodeEnd":609,"githubUrl":"https://github.com/alibaba/spring-ai-alibaba/blob/f82da0b50f35744c13968191be2b1cd2452ef550/spring-ai-alibaba-admin/spring-ai-alibaba-admin-server-core/src/main/java/com/alibaba/cloud/ai/studio/core/base/manager/HttpClientManager.java#L573-L609","documentation":"Default branch of buildApiNodeRequest in HttpClientManager: the requested HTTP verb was not among the supported cases (GET/POST/PUT/DELETE/PATCH), so no HttpRequestBase could be constructed. Indicates a programming/configuration error, not a runtime condition.","triggerScenarios":"Thrown at spring-ai-alibaba-admin/spring-ai-alibaba-admin-server-core/src/main/java/com/alibaba/cloud/ai/studio/core/base/manager/HttpClientManager.java:591 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Restrict method values to GET, POST, PUT, DELETE, PATCH","Fix the mapping that derives the method from plugin/tool configuration","Validate the method string before invoking the HTTP client"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f82da0b50f35744c13968191be2b1cd2452ef550","analyzedAt":"2026-09-09T15:32:42.421Z","contentChangedAt":"2026-09-09T15:32:42.421Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}