Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Proxy settings are not respected in some places #1807

Closed
izuzak opened this issue Mar 30, 2014 · 16 comments
Closed

Proxy settings are not respected in some places #1807

izuzak opened this issue Mar 30, 2014 · 16 comments
Labels

Comments

@izuzak
Copy link
Contributor

izuzak commented Mar 30, 2014

Noticed two Halp tickets about this so far:

  • support/a10f96d4b08f11e3934b3dfc0d230d46
  • support/45b5441aa86911e39c8bef69aceed9d5

Finally, I didn't find any way to set my proxy info in the settings of your app, and I'm not sure you are respecting the proxy settings of the OS. So my first attempt to send feedback failed.

...

I tried to submit this via the built-in feedback but it didn't say it was successful, it seemed to time out just like fetching packages or themes:
Built-in package and theme fetching doesn't work when proxies are required. "Fetching featured packages and themes failed. connect ENETUNREACH". DNS resolves on this corporate network, but connections must use http or https proxies.
Self-updating Atom itself works.

So, it seems that proxy settings are not respected, and it's not possible to set them in Atom.

@Khoulaiz
Copy link

Khoulaiz commented May 9, 2014

The same is true for the linux version. I've set my proxy via environment variables following the format: http://user:password@proxy.fully.qualified:port (for https, too), but I get

Fetching featured packages and themes failed.
tunneling socket could not be established, cause=Parse Error

@Karunamon
Copy link

Worth mentioning that I can't work around this with tsocks either. We go from ECONNREFUSED to tunneling socket could not be established, cause=socket hang up

@probablycorey
Copy link

Based on this issue electron/electron#183 it looks like we have to manually set the proxy for all node calls. Is this correct @zcbenz?

@zcbenz
Copy link
Contributor

zcbenz commented May 14, 2014

Yes, manually setting proxy for node calls is required.

@pritambaral
Copy link
Contributor

Relevant upstream PR: request/request#844

@aldanor
Copy link

aldanor commented Jul 23, 2014

request/request#844 has been merged in a while ago, any updates on setting proxies in Atom?

@muescha
Copy link

muescha commented Jul 29, 2014

on windows:

add in Atom\resources\app\apm\node_modules\atom-package-manager\.apmrc this line (host and port obfuscated):

http-proxy = http://1.2.3.4:1234 

atom also not respect this line

note if i setup an environment variable then it works:

rem -- File: atom.bat
set HTTP_PROXY=http://user:pass@server.url:port
atom.exe

@lijunle
Copy link

lijunle commented Aug 12, 2014

I don't think apm has leverage the merge request/request#844, which is merge on July 8. But apm is still using request 2.30 (which is release Dec 14, 2013)

@duncanmapes
Copy link

this works in the .apmrc for me, thanks @lijunle
proxy = http://HOST:PORT
strict-ssl = false

@tatsuyafw
Copy link

👍

@windgaucho
Copy link

@duncanmapes Thanks!! this work for me too

@JPvRiel
Copy link

JPvRiel commented Nov 27, 2015

@duncanmapes strict-ssl = false implies being insecure and not validating TLS?

@damieng
Copy link
Contributor

damieng commented Feb 10, 2017

Atom automatically sets the environment variables when calling out to apm itself in 1.14 and beyond.

@damieng damieng closed this as completed Feb 10, 2017
@tiankongmumian
Copy link

My problem is still unsolved!!!

@damieng
Copy link
Contributor

damieng commented Jan 12, 2018

Please open a new issue with the details necessary to investigate.

@lock
Copy link

lock bot commented Jul 11, 2018

This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

@lock lock bot locked as resolved and limited conversation to collaborators Jul 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests