You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our goal is to use this library in a container to proxy file upload requests to S3. When doing so, we run into an error http: ContentLength=... with Body length 0. Any tips on how to resolve this?
Checked Body Reading:
We ensured that the request body was read and reset correctly using readDownStreamRequestBody.
Verified Header Handling:
We made sure that Content-Length was set correctly based on the actual body length and that Transfer-Encoding was handled properly.
Reviewed Signing Process:
We examined the sign method to ensure it didn’t alter the request body or headers in a way that could cause the mismatch.
Verified Request Handling:
We looked into how the ProxyClient was creating and sending requests to ensure consistent body and header handling.
Conclusion
Issue: The mismatch between Content-Length and the actual body length remains unresolved.
Our goal is to use this library in a container to proxy file upload requests to S3. When doing so, we run into an error
http: ContentLength=... with Body length 0
. Any tips on how to resolve this?Steps to reproduce
Start image
Send image
Responds with
View debug logs
The text was updated successfully, but these errors were encountered: