Closed kdawgwilk closed 7 years ago
I'm having this issue too...
I'd love to help fix this issue, as this is rather critical. Anything I can do to help?
Weird. I have a feeling this is an issue in vapor/sockets.
@hhanesand if you want to submit a failing test case that would help out a ton!
We'll definitely get this fixed before 2.0 goes live.
Environment
When using the default droplet client (EngineClient) to make a request that has a large response body, the body will get cut off in the response.
e.g.
Upon further investigation dumping the response
dump(response)
I get the following:Also trying to parse body.bytes into JSON throws
JayError.unexpectedEnd
I was able to get things working by using the
FoundationClient
instead: