26.0.1: close-delimited HTTPS responses fail with ERR_INCOMPLETE_CHUNKED_ENCODING (also HTTP/1.1-only); 6.15.0 works
Description
HTTPS responses from a production API fail in Chrome with net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK) when SSL Proxying is enabled in Proxyman 26.0.1. The API returns valid JSON with an application success code, but the browser reports a network error and cannot render the returned data.
The user reports that 6.15.0 works normally and is currently the only usable version for this workflow. The exact first affected version has not been established.
Steps to Reproduce
- Enable SSL Proxying for an HTTPS API whose upstream HTTP/1.1 response is delimited by connection closure (
Connection: close, withoutContent-LengthorTransfer-Encodingin the direct response). - Send a read-only POST query from Chrome through Proxyman 26.0.1.
- Observe
ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK)and the resulting XHR/AxiosNetwork Error. - Repeat with HTTP/2 disabled (HTTP/1.1-only mode): the failure persists.
- Send the same read-only POST, with the same captured request body and authentication, using Python urllib directly and through the explicit proxy at 127.0.0.1:7777.
The original API requires private authentication, so its URL, credentials, response data and HAR are intentionally omitted. A standalone public reproducer is not yet available.
Current Behavior / Verified Comparison
Direct request, bypassing the HTTP proxy
- HTTP 200.
Connection: close.- No
Content-LengthorTransfer-Encodingobserved. - Response body reads successfully: 846 bytes, valid JSON, application code 0.
Same request through Proxyman, HTTP/1.1-only
- HTTP 200.
- Client-facing headers include
Connection: closeandtransfer-encoding: chunked. - Python
response.read()raiseshttp.client.IncompleteRead: IncompleteRead(846 bytes read). - The exception's partial body is all 846 bytes and parses as valid JSON with application code 0.
- Chrome reports
net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK). - Proxyman's response viewer shows valid JSON and HTTP 200 despite the client-side failure.
This suggests a response-framing/termination issue when forwarding a close-delimited upstream response as chunked downstream. A missing final chunk is a hypothesis from the client parser failure, not a raw-wire capture confirmation.
The production team reportedly changed KeepAlive behavior to reduce resource usage, but we have not verified the server configuration or established that this change is itself defective. Direct reads succeed.
Expected Behavior
A valid close-delimited upstream response should be forwarded with valid downstream message framing and termination, so the client can finish reading it successfully. HTTP 200 and a valid JSON body should not result in incomplete chunked encoding.
Environment
- Proxyman: 26.0.1, build 260001 (verified).
- Last working version: 6.15.0 (user-reported).
- macOS: 27.2, build 26B5101f (verified).
- Client: Google Chrome; independently reproduced using Python 3.12 urllib.
- Proxy port: 7777.
- Recording and SSL Proxying enabled.
- Failure occurs with HTTP/2 disabled (
http1_only). - Upstream protocol recorded as HTTP/1.1.
No tokens, cookies, account identifiers, production response records or original captures are included in this report.
thanks for the bug report. Let's me investigate it 👍
@Yoroin it's fixed: https://assets.proxyman.com/beta/Proxyman_26.0.1_Fix_encoding.dmg
Hi, I tested the beta version and confirmed that the issue is resolved. The previously failing production requests now work normally with Proxyman enabled. Thank you for the quick fix!
Awesome, I will include this fix in the next release tomorrow 👍