code-for-blog icon indicating copy to clipboard operation
code-for-blog copied to clipboard

Proxy hangs while reading the HTTP request body

Open nsingl00 opened this issue 1 year ago • 1 comments

I am using the proxy to intercept my S3 POST request before sending it to destination.

For this, I need to read the request body. If I try to read the body, It just hangs and later gives "Unexpected EOF" which happens when the body has been read somewhere upstream. When I look at the proxy, I see that it is reading the request here and my suspicion is, request.body not getting closed.

How can I read the request body here?

Thanks

nsingl00 avatar Jun 20 '24 19:06 nsingl00

Can you more specifically explain the setup you're using?

eliben avatar Jun 23 '24 13:06 eliben