The content of a response is not return on 413
See original GitHub issueWhen trying to post through Google Load Balancer I get this error and the response it not returned from the Nginx but the curl version works.
$ http -f POST XXX \
> variables='XXXX' \
> file@./testfile.dat
http: error: ConnectionError: ('Connection aborted.', BrokenPipeError(32, 'Broken pipe')) while doing POST request to URL: XXXX
$ curl -v XXXX \
> -H "Content-Type:multipart/form-data" \
> -F XXXX
> -F 'file=@./testfile.dat'
* Trying XXXX...
* TCP_NODELAY set
* Connected to XXXX (XXXX) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate: XXX
* Server certificate: RapidSSL SHA256 CA
* Server certificate: GeoTrust Global CA
> POST /api/graphql HTTP/1.1
> Host: XXX
> User-Agent: curl/7.51.0
> Accept: */*
> Content-Length: 104858299
> Expect: 100-continue
> Content-Type:multipart/form-data; boundary=------------------------200e4faa1c52a317
>
< HTTP/1.1 413 Request Entity Too Large
< Server: nginx/1.13.3
< Date: Wed, 09 Aug 2017 12:12:02 GMT
< Content-Type: text/html
< Content-Length: 199
< Strict-Transport-Security: max-age=15724800; includeSubDomains;
< Via: 1.1 google
< Alt-Svc: clear
< Connection: close
<
<html>
<head><title>413 Request Entity Too Large</title></head>
<body bgcolor="white">
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>nginx/1.13.3</center>
</body>
</html>
* Curl_http_done: called premature == 0
* Closing connection 0
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
413 Payload Too Large - HTTP - MDN Web Docs
The HTTP 413 Payload Too Large response status code indicates that the request entity is larger than limits defined by server; ...
Read more >HTTP status code = 413 when sending data
The 413 status code indicates that the request was larger than the server is able to handle, either due to physical constraints or...
Read more >How to Solve the "413 Request Entity Too Large" Error
In a nutshell, the “413 Request Entity Too Large” error is a size issue. It happens when a client makes a request that's...
Read more >413 HTTP Response Status Code Definition
The 413 HTTP Status Code indicates that the request was too large for the server to handle, either because of physical constraints or ......
Read more >Response 413 - Python requests trying POST .png file
I'm using python requests to do a simple post and I need to send a .png image. ... Canno't figure out why I...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jakubroztocil It kind of have, since
Connection aborted
is showed fromhttpie
and not fromcurl
. @redalert11 It is not nginx that is the problem, it is that curl shows the correct output and httpie doesn’t with the same input 😃opps… @kevinsimper. i meant to post this somewhere else. 😛