Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

bug: http method rewrite not works in proxy-rewrite plugin #7261

Closed
mojerro opened this issue Jun 16, 2022 · 10 comments
Closed

bug: http method rewrite not works in proxy-rewrite plugin #7261

mojerro opened this issue Jun 16, 2022 · 10 comments

Comments

@mojerro
Copy link

mojerro commented Jun 16, 2022

Current Behavior

image

As the settings above, the route still uses POST method instead of GET method to the upstream

image

Expected Behavior

any routes matches the rule will change to GET method

Error Logs

no error

Steps to Reproduce

as above

Environment

  • APISIX version (run apisix version): 2.12.0 using docker image apache/apisix:2.12.0-alpine
  • Operating system (run uname -a): Linux 11111 4.15.0-163-generic #171-Ubuntu SMP Fri Nov 5 11:55:11 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
@soulbird
Copy link
Contributor

Which version is the dashboard?

@tokers
Copy link
Contributor

tokers commented Jun 17, 2022

@mojerro Your URI path is not correct, it should be /server/specs/graphql/*. I guess the 404 is returned by APISIX since it doesn't know which route should be used for this request.

@mojerro
Copy link
Author

mojerro commented Jun 18, 2022

@soulbird dashboard version is 2.10.1

@tokers I think I know what I did, and I test the route by using the postman which works well. And 404 is from my backend docker container, so it's true that the request reach the endpoint.

@mojerro
Copy link
Author

mojerro commented Jun 18, 2022

I also check the json store in apisix using admin API, everything looks well just like the document shows

@tokers
Copy link
Contributor

tokers commented Jun 19, 2022

@mojerro Your URI path is not correct, it should be /server/specs/graphql/*. I guess the 404 is returned by APISIX since it doesn't know which route should be used for this request.

Ignore it.

@mojerro
Copy link
Author

mojerro commented Jun 19, 2022

Can you reproduce this problem or some extra information I need to provide

@tokers
Copy link
Contributor

tokers commented Jun 20, 2022

@mojerro I just checked the changelog, this problem was fixed since 2.13.0, see https://github.com/apache/apisix/blob/master/CHANGELOG.md#2130.

@soulbird
Copy link
Contributor

Fixed in #6300. Please upgrade apisix and dashboard.

@tzssangglass
Copy link
Member

considered as solved, feel free to reopen if you need.

@mojerro
Copy link
Author

mojerro commented Jun 20, 2022

thanks a lot~

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants