Errorlog shows GET timeout; Accesslog shows POST

bclod nginx-forum at
Fri May 20 19:45:15 UTC 2016



We've implemented a lightweight APIGW on nginx 1.9.9 using openresty
packages to customize the handling/proxying logic.  We have dozens clients
that are able to leverage this implementation just fine.

The Issue

We have one client that is experiencing some weird issues when trying to
access our APIGW. This is only for certain requests coming from their app. 
We strongly believe it's a malformed request from their side but we're
trying to help them find the issue.  The behavior we see on our side is
quite strange as well.  The error.log will show a GET request that timed
out.  The access.log shows a POST request for the same request.  Below are
the two entries; the response time always seems to be around 5 seconds; but
lowest timeout explicitly set in our configuration is 10 seconds. 

Error log entry

2016/05/18 11:34:51 [info] 13516#0: *304290 client prematurely closed
connection, client:, server: , request: "GET /hidden_uri
HTTP/1.1", host: ""

Access log entry 


Configuration for access log


Posted at Nginx Forum:,267030,267030#msg-267030

More information about the nginx mailing list