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

Respondida

10 Comentários

  • Ahmed Zaid
    Community Moderator

    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
  • 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
    Community Moderator

    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
  • CJ Johnson

    I'm having this issue now as well, and it's preventing me from updating an app. 

    0
  • CJ Johnson

    It turns out that a bunch of changes were made to the workflow on ZCLI and not announced anywhere since I last used this. Problem solved. 

    0
  • Benessa Dumol

    Hi CJ Johnson,

    May I ask what solution did you implement to solve this issue?
    Unfortunately, I am still having this issue and wasn't able to use any zcli command

    Looking forward to your response.

    Thank you,
    Benessa

    0
  • Dan R.
    Community Moderator

    Likewise! I can't update an app, I just get "Error: Failed to upload app"

    CJ Johnson what did you find out that let you resolve the issue?

    0
  • Eric Nelson
    Zendesk Developer Advocacy
    Hey Dan, 
     
    Have you ever used the ZCLI to update this app before? Do you have a zcli.apps.config.json in your projects root directory? 
     
    Thanks!
    0
  • Ahmed Zaid
    Community Moderator

    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.

    -1

Por favor, entrar para comentar.

Powered by Zendesk