timoni icon indicating copy to clipboard operation
timoni copied to clipboard

`init` commands returns weird error about fetching a file from github

Open piontec opened this issue 2 years ago • 3 comments

I was expecting this to work, but it fails:

/tmp ➜  timoni version         
api: timoni.sh/v1alpha1
client: 0.17.0
cue: 0.6.0
/tmp ➜  timoni mod init myapp .
4:12PM ERR pulling artifact manifest failed: GET https://ghcr.io/token?scope=repository%3Astefanprodan%2Ftimoni%2Fminimal%3Apull&service=ghcr.io: DENIED: denied

piontec avatar Dec 20 '23 15:12 piontec

Your GHCR token has expired. Update it or run docker logout ghcr.io

stefanprodan avatar Dec 20 '23 15:12 stefanprodan

Thanks, that was it, but I didn't get it from the original error message. Maybe there's a way to make it a bit more verbose?

piontec avatar Dec 20 '23 16:12 piontec

This is the standard message retuned by the OCI API, we could have some regex for DENIED in the error message and append some hint to it. Docker CLI will show the same error.

stefanprodan avatar Dec 20 '23 16:12 stefanprodan