Open mislav opened 1 year ago
Not sure if this is relevant but I used to be able to get a graphql client without any issues previously but for some reason I now receive an error using the same method that was working before client, err := gh.GQLClient(nil)
which returns an err along the lines of authentication token not found for host github.com
. Is this to be expected or is there something that I'm missing?
We'd need more info to know what's going on there.
go-gh
?gh
in your PATH and up to date?gh auth status -h github.com
work?Thanks!
Ok, so I was on go-gh v1.0.0
and updating to go-gh v1.2.1
fixed the issue on the extension for me - I should have done that before commenting 😅
Right now when
gh auth token
command fails for some reason, TokenForHost masks that with a generic "authentication token not found" error. I propose that the error also includes concrete reasons for the failure if they were known: for example, if gh wasn't found in the PATH.