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: 413 Request Entity Too Large #11221

Open
DokiDoki1103 opened this issue May 2, 2024 · 1 comment
Open

bug: 413 Request Entity Too Large #11221

DokiDoki1103 opened this issue May 2, 2024 · 1 comment

Comments

@DokiDoki1103
Copy link

Current Behavior

I see #5301

However, following the steps of configuration still cannot solve the problem

    nginx_config:
      http:
        client_max_body_size: 0

Expected Behavior

No response

Error Logs

No response

Steps to Reproduce

HTTP request body greater than 1m will result in an error

<html>

<head>
    <title>413 Request Entity Too Large</title>
</head>

<body>
    <center>
        <h1>413 Request Entity Too Large</h1>
    </center>
    <hr>
    <center>nginx/1.25.5</center>
</body>

</html>

Environment

  • APISIX version (run apisix version): 3.9
  • Operating system (run uname -a):Linux ecm-e900 3.10.0-957.el7.x86_64 change: added doc of how to load plugin. #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
  • OpenResty / Nginx version (run openresty -V or nginx -V): nginx/1.25.5
  • 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):
@dbit-xia
Copy link

Try specifying the size unit?

nginx_config:
  http_server_location_configuration_snippet: |
    client_max_body_size 5m;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants