Getting Error: Authorization Failed, try logging in! When Running zcli apps:update | Community
Skip to main content

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

  • July 4, 2022
  • 7 replies
  • 0 views

Benessa

Hello, 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

7 replies

Benessa
  • Author
  • July 5, 2022

Hi @ahmed11, 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


Benessa
  • Author
  • July 11, 2022

Hi @ahmed11, 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


CJ99
  • December 15, 2022

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


CJ99
  • December 15, 2022

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. 


Benessa
  • Author
  • December 15, 2022

Hi @cj99,

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


Dan12
  • February 8, 2023

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

@cj99 what did you find out that let you resolve the issue?


Eric27
  • February 8, 2023
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!