microsoft / appcenter-cli

Command-line Interface (CLI) for Visual Studio App Center
https://appcenter.ms/
MIT License
581 stars 234 forks source link

Proxy with Authentication Issue #2495

Closed Vacxe closed 2 months ago

Vacxe commented 3 months ago

Description

We have corporate network and all calls restricted without proxy config. Previously we used CNTLM + Redirect to local host with proxy_http and proxy_https and it works. I want to change it to using NPM with auth parameters

Repro Steps

appcenter version 2.7.3

npm config set proxy http://%proxy.username%:%proxy.password%@%proxy.hostname%:%proxy.port%
npm config set https-proxy http://%proxy.username%:%proxy.password%@%proxy.hostname%:%proxy.port%

appcenter distribute release --file Legacy/iOS/Apps/<MY IPA> --app <MY APP> --group <MY USERS> --release-notes-file releaseNotes.md --silent --disable-telemetry --output json

failed with exception "request to https://api.appcenter.ms/v0.1/apps/<MY APP>/uploads/releases failed, reason: getaddrinfo ENOTFOUND api.appcenter.ms"

Any ideas?

DordeDimitrijev commented 3 months ago

Hello @Vacxe thank you for reaching out. Please try setting your environment variable like this to use proxy HTTPS_PROXY="http://%proxy.username%:%proxy.password%@%proxy.hostname%:%proxy.port%" appcenter distribute release... Let me know if this works for you.

DmitriyKirakosyan commented 2 months ago

Closing due to inactivity.