You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 10, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 10, 2020. It is now read-only.
yes, I'm having the same issue when integrating simple signing into projectatomic/docker but I'm definitely just going to parse skopeo's output for now - we could work on error codes though.
I began playing with this, but I am failing to get even to the point of this error.
It would seem that a combination of both could be the best option. Suppose the return code was '99' which meant not found, we could then parse out some details from the JSON. If you look at the original error message, it doesn't have real user level informative information. I think the following codes could make sense:
Can't you just map say 404 to not found if it's in the output? it's exactly what I'm doing for now in docker/docker. I agree we need better errors though.
Sure of course. But frankly I was trying to avoid that and do the work once. In theory, returns shouldn't be a big deal. Parsing is error prone which is why in some ways I was waiting. It is also why I looked at the actual code to see how easy it might be.
Activity
rhatdan commentedon Oct 11, 2016
I began playing with this, but I am failing to get even to the point of this error.
baude commentedon Oct 11, 2016
IMHO, we need to work in return codes to skopeo so we can catch this kind of stuff.
rhatdan commentedon Oct 11, 2016
I think skopeo is returning lots of data in the form of a json data. and we need to parse this to get some kind of better error message for the user.
@runcom is this the intention?
runcom commentedon Oct 11, 2016
yes, I'm having the same issue when integrating simple signing into projectatomic/docker but I'm definitely just going to parse skopeo's output for now - we could work on error codes though.
This should trigger that error I guess:
baude commentedon Oct 11, 2016
It would seem that a combination of both could be the best option. Suppose the return code was '99' which meant not found, we could then parse out some details from the JSON. If you look at the original error message, it doesn't have real user level informative information. I think the following codes could make sense:
and probably a couple more.
rhatdan commentedon Oct 11, 2016
Just use ERRNO for those if possible. Or codes defined for http, lets not design our own new codes.
baude commentedon Oct 11, 2016
Looking at the skopeo/containers code, the error messages come largely from docker code and are just sprintf'd as a return.
runcom commentedon Oct 11, 2016
Can't you just map say
404to not found if it's in the output? it's exactly what I'm doing for now in docker/docker. I agree we need better errors though.baude commentedon Oct 11, 2016
Sure of course. But frankly I was trying to avoid that and do the work once. In theory, returns shouldn't be a big deal. Parsing is error prone which is why in some ways I was waiting. It is also why I looked at the actual code to see how easy it might be.
Unify 404/unable to find image messages
baude commentedon Jan 31, 2017
#858
Unify 404/unable to find image messages
baude commentedon Feb 1, 2017
@aweiteka I think I have resolved this with the commit 3f1ed62 ... mind closing if you agree or else let me know
baude commentedon Feb 13, 2017
Closing, re-open if not happy.