DarqueWarrior / generator-team

Generates an app with CI/CD in Team Foundation Server or Team Services
MIT License
92 stars 51 forks source link

Connect to VSTS behind proxy #21

Open kethahel99 opened 6 years ago

kethahel99 commented 6 years ago

How can we specify the http or https proxy setting for yo team? The npm config for proxy and https-proxy does not seem to work

yo team hangs at "Getting Agent Queues" and then exits:

image

DarqueWarrior commented 6 years ago

Can you check your personal access token? You can test is with the VSTeam PowerShell Module. All the issues I have ever seen with Yo Team are PATs that are expired or don't have the correct permissions.

kethahel99 commented 6 years ago

Hi @DarqueWarrior , I'll have a look and let you know. It all works when I'm not on my corporate network. It has something to do with the proxy. Strange...even though I set it in npm. Not sure if there is a yeoman proxy setting?

DarqueWarrior commented 6 years ago

I am not sure. But my generator just makes https calls to the VSTS REST API. Could your proxy be blocking it?

kethahel99 commented 6 years ago

Great idea @DarqueWarrior . I'll test the VSTS REST API behind the proxy and get the domain white-listed if need be. I'll check back with you soon. I create the PAT today for 1 year. So it can't be expired.

kethahel99 commented 6 years ago

Hi @DarqueWarrior , would you be able to tell me what hostnames/fqdn and IP's your generator is making https REST calls to? I would like to get them whitelisted on our corporate proxy and firewall