Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init commands returns weird error about fetching a file from github #289

Open
piontec opened this issue Dec 20, 2023 · 3 comments
Open

init commands returns weird error about fetching a file from github #289

piontec opened this issue Dec 20, 2023 · 3 comments

Comments

@piontec
Copy link

piontec commented Dec 20, 2023

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
@stefanprodan
Copy link
Owner

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

@piontec
Copy link
Author

piontec commented Dec 20, 2023

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?

@stefanprodan
Copy link
Owner

stefanprodan commented Dec 20, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants