Getting Error: Authorization Failed, try logging in! When Running zcli apps:update
RespondidaHello, good day.
I would like to update a private Zendesk app on our instance, but I am getting the error Error: Authorization Failed, try logging in! when I used the command zcli apps:update.
I can see that there's a warning regarding the license, but I have this parameter "license": "ISC" on the package.json file. Also, I have the correct app ID on the zcli.apps.config.json file so I am not sure what is causing the error.
I hope someone will answer my query.
Thank you,
Benessa Mae Dumol
-
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?
-
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 -
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 -
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
-
I'm having this issue now as well, and it's preventing me from updating an app.
-
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.
-
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 commandLooking forward to your response.
Thank you,
Benessa -
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? -
Hey Dan,
Have you ever used the ZCLI to update this app before? Do you have azcli.apps.config.json
in your projects root directory?
Thanks!
-
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.
Por favor, entrar para comentar.
10 Comentários