@atripp One additionally thing to mention. I tested this also with the test repository i given to you. This repository i was able to clone, but not others.
What i have found out: There is a bug in your implementation, which leads to the error given in my last reply:
If the repository name contains a dot (.) for example a repository with name: image.kubernetes-test
You'll get this error. So i think url or content encoding is not done the right way. I tried to rename one repository from: image.kubernetes-test to image-kubernetes-test and voila... That worked. So, maybe you can fix this too, so your implementation is usable for all valid repository names