Skip to content
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

Merged
merged 7 commits into from
Dec 26, 2024

Conversation

ISKonst
Copy link
Contributor

@ISKonst ISKonst commented Dec 17, 2024

…get method is not a POST request.

Make sure that:

  • You have read the contribution guidelines.
  • You submit test cases (unit or integration tests) that back your changes.
  • Your local test passed ./mvnw clean install -Dmaven.javadoc.skip=true.

* @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 {
Copy link
Member

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?

Copy link
Contributor Author

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

Copy link
Member

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

Copy link
Contributor Author

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

@ISKonst
Copy link
Contributor Author

ISKonst commented Dec 20, 2024 via email

@ISKonst ISKonst requested a review from yu199195 December 23, 2024 05:36
@yu199195 yu199195 added the type: bug Something isn't working label Dec 25, 2024
@yu199195 yu199195 added this to the 2.7.0 milestone Dec 25, 2024
@yu199195 yu199195 merged commit 02bdaba into apache:master Dec 26, 2024
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants