gk-cli icon indicating copy to clipboard operation
gk-cli copied to clipboard

[BUG] user must be logged into azure to access Repository data

Open JHarrisGTI opened this issue 9 months ago • 8 comments

Description

I just installed the GitKraken CLI using brew. I ran gk auth login, which worked. Then I ran gk ws list to look at my workspaces, and I got:

Something has gone wrong. Your request may have been partially completed.
user must be logged into azure to access Repository data,                
user must be logged into azure to access Repository data,                
user must be logged into azure to access Repository data,                
user must be logged into azure to access Repository data  

Our repos are hosted in Azure DevOps. I can see my workspace on gitkraken.dev. Do I need to log into Azure in my CLI somehow? How would I do that?

GitKraken CLI Version

3.0.3

OS Version

I'm running fish shell on MacOS 15.4.1 on an Intel chip.

Git Version

2.41.0

Logs, Screenshots, Screen Captures, URLs, etc

No response

JHarrisGTI avatar Apr 23 '25 16:04 JHarrisGTI

Hi! Let's try something. Can you download the latest version (3.0.4) and run the command gk provider list -s before gk ws list ?

JBUinfo avatar May 02 '25 13:05 JBUinfo

Thanks for looking into this!

Image

JHarrisGTI avatar May 02 '25 20:05 JHarrisGTI

Hi there! Sorry for the delay. Could you please try the latest version? We're having trouble reproducing the issue on our end and would really appreciate it if you could test it again with the updated version.

https://github.com/gitkraken/gk-cli/releases/tag/v3.0.7 If it still doesn't work, please use "gk provider remove" and then "gk provider add azure"

Thank you!

JBUinfo avatar May 27 '25 17:05 JBUinfo

I updated GitKraken CLI to v3.0.7 and saw the same issue, so I ran gk provider remove azure and gk provider add azure. Now when I run gk ws list I get:

Something has gone wrong. Your request may have been partially completed.           
Error parsing JSON: invalid character 'r' looking for beginning of object key string

When I run gk provider list -s I get the same table as before.

JHarrisGTI avatar May 29 '25 19:05 JHarrisGTI

Hi @JHarrisGTI ! It's been a while since we last spoke. We've recently done an internal rework of the workspaces, and I’m not sure if you're still experiencing the same issue but could you give our latest version a try?

JBUinfo avatar Aug 04 '25 13:08 JBUinfo

I'm now having a different problem. When I update gitkraken-cli from Homebrew and then run gk, I get the error zsh: command not found: gitk. Google says I should resolve this error by installing git-gui; when I do that and then run gk, git-gui opens. I don't think this is intended?

JHarrisGTI avatar Aug 11 '25 19:08 JHarrisGTI

Hi @JHarrisGTI ! This is a common issue https://github.com/gitkraken/gk-cli?tab=readme-ov-file#gk-from-oh-my-zsh .

ZSH has a default alias "gk", so you must use "unalias gk"

JBUinfo avatar Aug 14 '25 12:08 JBUinfo

unalias gk fixed zsh: command not found: gitk, thank you.

I've updated to gk core 3.1.8 and CLI 3.1.9. The results I get are similar:

Image

I ran gk provider remove azure and gk provider add azure; output is unchanged.

JHarrisGTI avatar Aug 14 '25 13:08 JHarrisGTI