mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-27 00:55:57 +03:00
[GH-ISSUE #1635] WebSocket error during handshake when using Proxyman #1629
Labels
No labels
Discussion
Feature request
In Progress...
Plugins
Waiting response
Windows
Windows
bug
duplicate
enhancement
feature
good first issue
iOS
macOS 10.11
question
wontfix
✅ Done
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Proxyman#1629
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kartikarora on GitHub (May 12, 2023).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1635
Description
I am debugging an Android app which opens a webview, and the webview initiates a websocket connection. I have no control over the webview or the websocket connection code.
The webview is able to send parsed messages from websocket to native android code. I'd like to be able to modify this response using map remote to a locally hosted websocket server.
When I open the webview in chrome's inspector, the following happens
Error during WebSocket handshake: 'Sec-WebSocket-Protocol' header must not appear more than once in a responsebut the headers in Proxyman seem to be fine.Environment
@kartikarora commented on GitHub (May 12, 2023):
I can confirm that a similar setup on Charles Proxy just works.
@NghiaTranUIT commented on GitHub (May 12, 2023):
Thanks. I'm investigating your issue and send you a Beta build to test it out 👍
@NghiaTranUIT commented on GitHub (May 12, 2023):
@kartikarora can you share with me the website that uses WSS that I can test 🤔
My investigation
Note that I have to add the WSS domain (demo.piesocket.com) into the
network_security_config.xmlfile.@kartikarora commented on GitHub (May 12, 2023):
Hey @NghiaTranUIT
Thanks for the quick response. Unfortunately, the domains are not internet-facing and won't work until you are physically here in the office in Sydney :/
I can however confirm that I have set up my network_security_config in a similar manner and I am able to proxy the other end points over https easily.
I'll try overriding the webview url with piesocket's demo url and see if that works.
@kartikarora commented on GitHub (May 12, 2023):
Interesting to find that https://www.piesocket.com/websocket-tester in the webview works and I am able to see the messages in Proxyman
@NghiaTranUIT commented on GitHub (May 12, 2023):
Maybe the bug is from WSS with STOMP protocol. I'm trying to find any STOMP WS online, so I can test it 👍
@kartikarora commented on GitHub (May 12, 2023):
@NghiaTranUIT The same server is interceptible on Charles though. I'd rather use Proxyman, to be honest.
I can't find any stomp servers online, I'll try and make one over the weekend.