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

InvalidProxyEnvironmentVariable in 0.1.5.0 (Ubuntu 15.04 Cntlm) #1165

Closed
schernichkin opened this issue Oct 15, 2015 · 5 comments
Closed

InvalidProxyEnvironmentVariable in 0.1.5.0 (Ubuntu 15.04 Cntlm) #1165

schernichkin opened this issue Oct 15, 2015 · 5 comments

Comments

@schernichkin
Copy link

InvalidProxyEnvironmentVariable error when using proxy under Ubuntu 15.04 with Cntlm.

Steps to reproduce:

  1. Install Cntlm, configure Ubuntu to use proxy using System Setting -> Network application.
  2. Run command stack new my-project

Expected:
Except Stack will create new project.

Actual:
InvalidProxyEnvironmentVariable error.

Here is the stack --version output:

$ stack --version
Version 0.1.5.0, Git revision a30f022c3dca7c489e08f31908ea77c3bf305375 (2159 commits) X86_64

Here is the command I ran with --verbose:

$ stack new my-project --verbose
Version 0.1.5.0, Git revision a30f022c3dca7c489e08f31908ea77c3bf305375 (2159 commits) X86_64
InvalidProxyEnvironmentVariable "https_proxy" "https://localhost:3128/"
@snoyberg
Copy link
Contributor

How did you get your stack executable? Is it one of the official
releases, or did you compile it yourself? If you compiled it yourself, did
you compile with Stack, or with cabal-install?

On Thu, Oct 15, 2015 at 2:27 PM, Stanislav Chernichkin <
notifications@github.com> wrote:

InvalidProxyEnvironmentVariable error when using proxy under Ubuntu 15.04
with Cntlm.

Steps to reproduce:

  1. Install Cntlm, configure Ubuntu to use proxy using System Setting ->
    Network application.
  2. Run command stack new my-project

Expected:
Except Stack will create new project.

Actual:
InvalidProxyEnvironmentVariable error.

Here is the stack --version output:

$ stack --version
Version 0.1.5.0, Git revision a30f022 (2159 commits) X86_64

Here is the command I ran with --verbose:

$ stack new my-project --verbose
Version 0.1.5.0, Git revision a30f022 (2159 commits) X86_64
InvalidProxyEnvironmentVariable "https_proxy" "https://localhost:3128/"


Reply to this email directly or view it on GitHub
#1165.

@schernichkin
Copy link
Author

I followed instructions from: https://github.com/commercialhaskell/stack/blob/release/doc/install_and_upgrade.md#ubuntu for Ubuntu 15.04 (amd64)

@snoyberg
Copy link
Contributor

There's currently no support in the http-client library for communicating with a proxy server over HTTPS, only over HTTP. Can you try changing the environment variable to http://localhost:3128 and see if that works?

@schernichkin
Copy link
Author

Yes it works. I woundering why it expect https_proxy to be http://..? For unsecured connections we have http_proxy which is http://.. for secured https_proxy which is normally https://..

@snoyberg
Copy link
Contributor

Because it's still connecting to the proxy server over an insecure connection, and then upgrading to a secure connection afterwards via a CONNECT interaction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants