microsoft / appcenter-cli

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

Error "unable to get local issuer certificate" during "appcenter login" on macOS #2493

Closed nullmicgo closed 3 months ago

nullmicgo commented 3 months ago

Description

I encountered an error while trying to use the appcenter login command on macOS. After pasting the access code from the browser, I received the following error message: "Error: unable to get local issuer certificate."

Repro Steps

To reproduce the issue, follow these steps:

  1. Open the terminal on macOS.
  2. Execute the command appcenter login.
  3. Proceed with the login process and copy the access code from the browser.
  4. Paste the access code into the terminal.

Expected behavior

I expected the appcenter login command to authenticate successfully and grant access to the App Center CLI.

Details

  1. Is there a particular command that you are having trouble with?
    • No, the issue occurs during the login process.
  2. Which version of the App Center CLI are you using?
    • Please provide the version number. For example, 2.7.4.
  3. Which OS version did you experience the issue on?
    • Please provide the specific macOS version. For example, macOS Big Sur 11.1.
  4. What command line/shell are you using?
    • Please specify the shell you are using. For example, /bin/bash or /bin/zsh.
  5. What version of Node.js and NPM/Yarn are you using?
    • Please provide the version numbers of Node.js and either NPM or Yarn. For example, Node.js v12.19.0, npm 6.14.8.
  6. Additionally, you can provide verbose logs of a CLI command by using DEBUG="appcenter-cli:*" before the command. For example, DEBUG="appcenter-cli:*" appcenter apps list. Include the logs here, but remember to omit any personal or sensitive data.
nullmicgo commented 3 months ago

version 3.0.0

DmitriyKirakosyan commented 3 months ago

@nullmicgo thank you for the report! What Nodejs version do you use? Does this command work on appcenter-cli@2 for you?

nullmicgo commented 3 months ago

sorry, i fixed. i think it is VPN issue, after i disconnected the VPN, then it works. Thanks