本帖最后由 zongheng 于 2024-9-12 22:36 编辑
使用postman一样的设置可以返回正确的值,但是使用活字格http请求,返回报错
StatusCode: 500, ReasonPhrase: 'Internal Server Error', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers: { Transfer-Encoding: chunked Connection: keep-alive Date: Thu, 12 Sep 2024 14:24:02 GMT Vary: Origin Vary: Access-Control-Request-Method Vary: Access-Control-Request-Headers ak-skywalking-traceId: d3ccff2b-f570-4fec-b63f-f7f00bff6dda openapi-flag: fromOpenApi Server: APISIX X-APISIX-Upstream-Status: 500 Content-Type: application/json }
{"code":"500","msg":"Internal Server Error","data":{"throwable":"Failed to parse multipart servlet request; nested exception is java.io.IOException: org.apache.tomcat.util.http.fileupload.FileUploadException: the request was rejected because no multipart boundary was found","throwTime":"2024-09-12 22:24:02","message":null,"stackTrace":null,"metadata":{}}}
|