kerwin612 opened a new issue, #4974: URL: https://github.com/apache/shenyu/issues/4974
### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior Test the swagger interface in the admin web page **The correct request parameters, but the response 415 exception** ### Expected Behavior Expect the correct 200 response ### Steps To Reproduce 1. Clone shenyu master 2. Start admin in IDEA 3. Start bootstrap in IDEA 4. Start shenyu-examples-http-swagger2 in IDEA 5. Test the swagger interface in the admin web page  ### Environment ```markdown ShenYu version(s): master ``` ### Debug logs in admin: ``` 2023-08-09 13:59:06 [http-nio-0.0.0.0-9095-exec-7] INFO org.apache.shenyu.admin.service.impl.SandboxServiceImpl - Sandbox Request Headers. toMap={"Content-Type":"application/json"} 2023-08-09 13:59:06 [http-nio-0.0.0.0-9095-exec-7] INFO org.apache.shenyu.admin.service.impl.SandboxServiceImpl - sandbox Request Params. toMap={} ``` in bootstrap: ``` 2023-08-09 13:59:06 [shenyu-netty-nio-7] INFO org.apache.shenyu.plugin.base.AbstractShenyuPlugin - contextPath selector match success from default strategy 2023-08-09 13:59:06 [shenyu-netty-nio-7] INFO org.apache.shenyu.plugin.base.AbstractShenyuPlugin - contextPath selector success match , selector name :/http-swagger2 2023-08-09 13:59:06 [shenyu-netty-nio-7] INFO org.apache.shenyu.plugin.base.AbstractShenyuPlugin - contextPath rule match path from default strategy 2023-08-09 13:59:06 [shenyu-netty-nio-7] INFO org.apache.shenyu.plugin.base.AbstractShenyuPlugin - contextPath rule success match , rule name :/http-swagger2 2023-08-09 13:59:06 [shenyu-netty-nio-7] INFO org.apache.shenyu.plugin.base.AbstractShenyuPlugin - divide selector match success from default strategy 2023-08-09 13:59:06 [shenyu-netty-nio-7] INFO org.apache.shenyu.plugin.base.AbstractShenyuPlugin - divide selector success match , selector name :/http-swagger2 2023-08-09 13:59:06 [shenyu-netty-nio-7] INFO org.apache.shenyu.plugin.base.AbstractShenyuPlugin - divide rule match path from default strategy 2023-08-09 13:59:06 [shenyu-netty-nio-7] INFO org.apache.shenyu.plugin.base.AbstractShenyuPlugin - divide rule success match , rule name :/http-swagger2/order/save ``` in shenyu-examples-http-swagger2: ``` 2023-08-09 13:59:06.439 WARN 21332 --- [0.0-8190-exec-5] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported] ``` ### Anything else? _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
