insomniaFetch not respecting proxy settings
lexithium opened this issue · comments
Expected Behavior
When trying to authenticate, the insomniaFetch function should check the application's proxy settings and make HTTP requests with the respective settings.
Actual Behavior
When I try to authenticate, the insomniaFetch function is not using the proxy settings I have set in Insomnia to perform HTTP calls, resulting in an ERR_CONNECTION_REFUSED.
Reproduction Steps
- Click Login
- Application opens web browser. Insert passphrase
- Click
Manually enter token
- Paste token into prompt on Insomnia
- Error is reported
Is there an existing issue for this?
- I have searched the issue tracker for this problem.
Additional Information
From main.log file:
[2024-04-25 09:47:17.009] [info] [main] Error checking for newer version Error: net::ERR_CONNECTION_REFUSED
at SimpleURLLoaderWrapper.<anonymous> (node:electron/js2c/browser_init:2:109791)
at SimpleURLLoaderWrapper.emit (node:events:514:28)
at SimpleURLLoaderWrapper.emit (node:domain:488:12)
[2024-04-25 09:52:27.266] [error] Error occurred in handler for 'insomniaFetch': Error: net::ERR_CONNECTION_REFUSED
at SimpleURLLoaderWrapper.<anonymous> (node:electron/js2c/browser_init:2:109791)
at SimpleURLLoaderWrapper.emit (node:events:514:28)
at SimpleURLLoaderWrapper.emit (node:domain:488:12)
Insomnia Version
9.0.0
What operating system are you using?
macOS
Operating System Version
Sonoma 14.4
Installation method
download from insomnia.rest
Last Known Working Insomnia version
No response
You are correct, thanks for the report, quick question what kind of proxy are you using? socks5?
Nah, just a http. I actually managed to workaround this by setting the proxy in my system settings, but I was under the impression that Insomnia would not recognize those.
That's good to hear. We just changed insomniaFetch in 9.1 to use electron fetch. This should allow system proxies to work.