Skip to content

WebSocket requests not routed through the configured proxy #5562

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
LunaticoCR opened this issue Dec 20, 2022 · 3 comments · May be fixed by #8624
Open
1 task done

WebSocket requests not routed through the configured proxy #5562

LunaticoCR opened this issue Dec 20, 2022 · 3 comments · May be fixed by #8624
Labels
A-websockets Area: Websockets B-bug Bug: general classification S-unverified Status: Unverified by maintainer

Comments

@LunaticoCR
Copy link

Expected Behavior

If I set an http network proxy on my Insomnia preferences I want all my requests to go through that proxy, including ws/wss connections.

Actual Behavior

Even though I have a proxy configured, WebSocket requests are not going though that proxy. All other normal http/https requests do go through the proxy.

Reproduction Steps

  1. Create a new WebSocket request
  2. Test it without any proxy settings, verify it works
  3. Configure a proxy under Insomnia preferences
  4. Try to make a connection with that same WebSocket request, observe that the request still works but it does not go through the proxy

Is there an existing issue for this?

Additional Information

The proxy in question is mitmproxy which I use regularly to capture and analyse traffic. I am able to observe all other http/https requests I make from Insomnia on the mitmproxy interface, but not the ws/wss connections.
I do see ws/wss connections made by my application on the mitmproxy interface.
If I turn the mitmproxy off but leave the proxy settings configured on Insomnia, the WebSocket request still works (meaning is not going through the proxy) but all other http/https requests wouldn't work, as expected.

Insomnia Version

2022.6.0

What operating system are you using?

macOS

Operating System Version

macOS Ventura 13.1

Installation method

Download from Insomnia website

Last Known Working Insomnia version

No response

@LunaticoCR LunaticoCR added B-bug Bug: general classification S-unverified Status: Unverified by maintainer labels Dec 20, 2022
@filfreire filfreire added the A-websockets Area: Websockets label Jan 4, 2023
@Lamisedaxeh
Copy link

For information i can confirm, i got the same issue on Arch Linux:

Version: Insomnia 9.3.3
Build date: 01/08/2024
OS: Linux x64 6.10.2-arch1-1
Electron: 30.2.0
Node: 20.15.0
Node ABI: 123
V8: 12.4.254.20-electron.0
Architecture: x64

@garesbil9
Copy link

same problem

@disasmwinnie
Copy link

disasmwinnie commented Apr 1, 2025

Can confirm. Using BurpSuite on my end (WebSocket-capable).

Version: Insomnia 11.01
Build date: 27/03/2025
OS: Windows_NT x64 10.0.26100
Electron: 35.0.2
Node: 22.14.0
Node ABI: 133
V8: 13.4.114.19-electron.0
Archtecture: x64

@cwangsmv cwangsmv linked a pull request Apr 17, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-websockets Area: Websockets B-bug Bug: general classification S-unverified Status: Unverified by maintainer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants