ProxymanApp / ProxymanApp/Proxyman
Response breakpoint closes the connection
@NghiaTranUIT is already working on this.
Since May 23, 2023.
- Dominant language
- No language data
- Stars
- 7k
- Forks
- 237
- PR merge metrics
- No merged PRs in 30d
Description
Description
I have the following in my App:
- I'm doing a request with an Authorization header
- Whenever the server gives me a 401 then I
- Do a token refresh
- Retry the original request (with the new token) on the same connection
If I don't specify any breakpoints in Proxyman everything works well, but as soon as I enable response breakpoints and deliver the 401 to my App, my retry call that uses the same connection as the original request fails with a java.net.ProtocolException: Unexpected status line: 0 while establishing the connection. So it appears that this connection has silently be closed.
Steps to Reproduce
- Enable response breakpoints
- Let the server return a 401 and hit the breakpoint
- Deliver the response back to the app
- Try to do another request on the same connection --> Fails
- request breakpoints alone do not seem to cause the issue, but only response breakpoints do
- doing a retry-call on the same connection when receiving a 200 and hitting the breakpoint does not seem to cause the issue
- Adding an explicit
Connection: closeheader in the 401 response after it hit the breakpoint, seems to work but is not my desired solution
Current Behavior
Proxyman seems to silently close the connection when receiving a 401 response from the server and delivering it back to my App.
Further requests on the same connection fail, with such a breakpoint in between, while it is working when I disable the breakpoints.
Expected Behavior
The connection should be kept open / mirror the server state.
Environment
- App version: e.g Proxyman 4.7.1 (47010)
- macOS version: e.g macOS Ventura 13.3.1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.