-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ISSUE #5851] Sandbox API debugging, the target API method is not POST, and the response format is JSON. The API returns an exception. #5852
Conversation
…get method is not a POST request.
* @return Response | ||
* @throws IOException IOException | ||
*/ | ||
public Response requestJson(final String url, final String json, | ||
final Map<String, String> header) throws IOException { | ||
final Map<String, String> header, HTTPMethod method) throws IOException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where is call this funcation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HttpUtils#requestJson,This method is currently invoked in only one place.
The call stack of this method is as follows and the source code location..
org.apache.shenyu.admin.controller.SandboxController#proxyGateway. Line 52 - 55
org.apache.shenyu.admin.service.impl.SandboxServiceImpl#requestProxyGateway. Line 79 - 110
org.apache.shenyu.admin.utils.HttpUtils#requestCall. Line 303 - 308
org.apache.shenyu.admin.utils.HttpUtils#requestJson. Line 226 - 231
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,pls check ci,it not passed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applied Checkstyle to HttpUtils file
SKonst
***@***.***
HttpUtils#requestJson,This method is currently invoked in only one place.
The call stack of this method is as follows and the source code location..
org.apache.shenyu.admin.controller.SandboxController#proxyGateway. Line 52 - 55
org.apache.shenyu.admin.service.impl.SandboxServiceImpl#requestProxyGateway. Line 79 - 110
org.apache.shenyu.admin.utils#requestCall. Line 303 - 308
org.apache.shenyu.admin.utils#requestJson. Line 226 - 231
…------------------ 原始邮件 ------------------
发件人: "apache/shenyu" ***@***.***>;
发送时间: 2024年12月20日(星期五) 上午10:34
***@***.***>;
***@***.******@***.***>;
主题: Re: [apache/shenyu] [ISSUE #5851] Sandbox API debugging, the target API method is not POST, and the response format is JSON. The API returns an exception. (PR #5852)
@yu199195 commented on this pull request.
In shenyu-admin/src/main/java/org/apache/shenyu/admin/utils/HttpUtils.java:
> * @return Response * @throws IOException IOException */ public Response requestJson(final String url, final String json, - final Map<String, String> header) throws IOException { + final Map<String, String> header, HTTPMethod method) throws IOException {
where is call this funcation?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
…get method is not a POST request.
Make sure that:
./mvnw clean install -Dmaven.javadoc.skip=true
.