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

bug: admin API response with Transfer-Encoding but no length in body #11933

Open
qizhendong1 opened this issue Jan 22, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@qizhendong1
Copy link
Contributor

Current Behavior

I found admin api response using chunked header and response all data once but no length is body.

ref https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Transfer-Encoding

Image

Expected Behavior

No response

Error Logs

No response

Steps to Reproduce

1. put a route

curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d '
{
    "uri": "/*",
    "upstream": {
        "type": "roundrobin",
        "nodes": {
            "127.0.0.1:8899": 10
        }
    }
}

2. get the route

curl http://127.0.0.1:9180/apisix/admin/routes/ -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -i

Environment

  • APISIX version (run apisix version): 3.2.2
  • Operating system (run uname -a): centos 7.9
  • OpenResty / Nginx version (run openresty -V or nginx -V): openresty/1.21.4.2
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):
  • APISIX Dashboard version, if relevant:
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):
@dosubot dosubot bot added the bug Something isn't working label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant