apache / apisix

The Cloud-Native API Gateway
https://apisix.apache.org/blog/
Apache License 2.0
14.22k stars 2.48k forks source link

bug: 413 Request Entity Too Large #11221

Open DokiDoki1103 opened 3 months ago

DokiDoki1103 commented 3 months ago

Current Behavior

I see https://github.com/apache/apisix/issues/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

dbit-xia commented 3 months ago

Try specifying the size unit?

nginx_config:
  http_server_location_configuration_snippet: |
    client_max_body_size 5m;