{"record":{"id":"9e13a993c8786830","repo":"nginx/nginx","slug":"ngx-log-err-9e13a9","errorCode":"NGX_LOG_ERR","errorMessage":"client intended to send too large body: %O bytes","messagePattern":"client intended to send too large body: %O bytes","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/http/ngx_http_core_module.c","lineNumber":1021,"sourceCode":"    }\n\n    ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,\n                   \"using configuration \\\"%s%V\\\"\",\n                   (clcf->noname ? \"*\" : (clcf->exact_match ? \"=\" : \"\")),\n                   &clcf->name);\n\n    ngx_http_update_location_config(r);\n\n    ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,\n                   \"http cl:%O max:%O\",\n                   r->headers_in.content_length_n, clcf->client_max_body_size);\n\n    if (r->headers_in.content_length_n != -1\n        && !r->discard_body\n        && clcf->client_max_body_size\n        && clcf->client_max_body_size < r->headers_in.content_length_n)\n    {\n        ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,\n                      \"client intended to send too large body: %O bytes\",\n                      r->headers_in.content_length_n);\n\n        r->expect_tested = 1;\n        (void) ngx_http_discard_request_body(r);\n        ngx_http_finalize_request(r, NGX_HTTP_REQUEST_ENTITY_TOO_LARGE);\n        return NGX_OK;\n    }\n\n    if (rc == NGX_DONE) {\n        ngx_http_clear_location(r);\n\n        r->headers_out.location = ngx_list_push(&r->headers_out.headers);\n        if (r->headers_out.location == NULL) {\n            ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR);\n            return NGX_OK;\n        }\n","sourceCodeStart":1003,"sourceCodeEnd":1039,"githubUrl":"https://github.com/nginx/nginx/blob/3f6f7824d4e2eb1ac37dec76683d525ac0ff521c/src/http/ngx_http_core_module.c#L1003-L1039","documentation":"Error \"client intended to send too large body: %O bytes\" thrown in nginx/nginx.","triggerScenarios":"Thrown at src/http/ngx_http_core_module.c:1021 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3f6f7824d4e2eb1ac37dec76683d525ac0ff521c","analyzedAt":"2026-08-22T03:09:46.447Z","schemaVersion":2},"datasetVersion":"2026-08-22T04:17:13.399Z"}