Cancel
Showing results for 
Search instead for 
Did you mean: 

cf CLI Login not working from Intranet

Experimenter
Experimenter

After setting a proxy I still recieve a connection error when trying to login to the Cloud Foundry interface for MindSphere on AWS.

Below is the response from the cf login attempt:

cf login -a https://api.cf.eu1.mindsphere.io
API endpoint: https://api.cf.eu1.mindsphere.io
FAILED
Error performing request: Get https://api.cf.eu1.mindsphere.io/v2/info: proxyconnect tcp: read tcp 157.163.1.200:20990->194.145.60.1:9400: wsarecv: An existing connection was forcibly closed by the remote host.

For reference here are my proxy settings:

set https_proxy=https://194.145.60.1:9400

set http_proxy=http://194.145.60.1:9400

npm config set https-proxy http://194.145.60.1:9400

Any ideas on how to solve this issue are welcome.

 

3 REPLIES 3

Re: cf CLI Login not working from Intranet

Creator
Creator

 

You may have a typo here. Looks like you have set the proxy differently on both NPM and in the environment variables (underlined below)...

set https_proxy=https://194.145.60.1:9400

set http_proxy=http://194.145.60.1:9400

npm config set https-proxy http://194.145.60.1:9400


Try the following...

set https_proxy=http://194.145.60.1:9400

set http_proxy=http://194.145.60.1:9400

npm config set https-proxy http://194.145.60.1:9400

 

Re: cf CLI Login not working from Intranet

Experimenter
Experimenter

This works perfectly!

Much appreciated!

Re: cf CLI Login not working from Intranet

Please accept it as a solution, so that everyone knows that the issue is solved.