Getting Error: Authorization Failed, try logging in! When Running zcli apps:update

Respondida

5 Comentarios

  • Ahmed Zaid

    Hi Benessa Dumol,

    I have had the same error few weeks ago. I couldn't authenticate at all using zcli login command or even environment variables.

    Were you able to log in before? can you run zcli profiles:list?

    0
  • Benessa Dumol

    Hi Ahmed Zaid, thanks for your response.

    I am also not able to run zcli profiles:list because it's asking me to set the environment variables.

    May I ask if you know how to set up the environment variables?

    Thank you,
    Benessa

    0
  • Ahmed Zaid

    Hi Benessa Dumol,

    Please install build-essential. I believe it should resolve your issue. On Ubuntu/Deb:

    sudo apt install build-essential

    And for login, you need a pin entry tool such as gnome-keyring if you are on Windows 11.

    sudo apt install gnome-keyring

    Otherwise, you can add the requested environment variables to your .bashrc file

    export ZENDESK_SUBDOMAIN='your_subdomain'
    export ZENDESK_EMAIL='you@example.com'
    export ZENDESK_API_TOKEN='abc123****'

    Let me know if it resolves your login issue.

    0
  • Benessa Dumol

    Hi Ahmed Zaid, apologies for the late reply.

    I created a .bashrc file on my app directory but it's still asking me to set the environment variables.
    Can you let me know if what I did is correct?

    Thank you,
    Benessa

    0
  • Ahmed Zaid

    Hi Benessa Dumol,

    You should have an existing bashrc file in your home directory ~/.bashrc. Simply add the export statements to it and reload it using

    source ~/.bashrc

    Then try:

    zcli profiles:list
    0

Iniciar sesión para dejar un comentario.

Tecnología de Zendesk