Skip to content
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

insomniaFetch not respecting proxy settings #7322

Open
1 task done
lexithium opened this issue Apr 25, 2024 · 3 comments
Open
1 task done

insomniaFetch not respecting proxy settings #7322

lexithium opened this issue Apr 25, 2024 · 3 comments
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer

Comments

@lexithium
Copy link

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.

Screenshot 2024-04-25 at 9 08 21 AM Screenshot 2024-04-25 at 9 49 34 AM

Reproduction Steps

  1. Click Login
  2. Application opens web browser. Insert passphrase
  3. Click Manually enter token
  4. Paste token into prompt on Insomnia
  5. Error is reported

Is there an existing issue for this?

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

@lexithium lexithium added B-bug Bug: general classification S-unverified Status: Unverified by maintainer labels Apr 25, 2024
@jackkav
Copy link
Contributor

jackkav commented Apr 30, 2024

You are correct, thanks for the report, quick question what kind of proxy are you using? socks5?

@lexithium
Copy link
Author

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.

@jackkav
Copy link
Contributor

jackkav commented Apr 30, 2024

That's good to hear. We just changed insomniaFetch in 9.1 to use electron fetch. This should allow system proxies to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer
Projects
None yet
Development

No branches or pull requests

2 participants