goharbor/harbor · error
invalid input: %s
Error message
invalid input: %s
What it means
Error "invalid input: %s" thrown in goharbor/harbor.
Source
Thrown at src/pkg/distribution/distribution.go:111
projectName, _ := utils.ParseRepository(ParseName(path))
return projectName
}
// ParseSessionID returns session id value from distribution API URL path
func ParseSessionID(path string) string {
m := utils.FindNamedMatches(extractSessionIDRegexp, path)
if len(m) > 0 {
return m["session_id"]
}
return ""
}
// ParseRef parse "repository:tag" or "repository@digest" into repository and reference parts
func ParseRef(s string) (string, string, error) {
matches := ref.ReferenceRegexp.FindStringSubmatch(s)
if matches == nil {
return "", "", fmt.Errorf("invalid input: %s", s)
}
repository := matches[1]
reference := matches[2]
if matches[3] != "" {
_, err := digest.Parse(matches[3])
if err != nil {
return "", "", fmt.Errorf("invalid input: %s", s)
}
reference = matches[3]
}
return repository, reference, nil
}
// IsDigest returns true when reference is digest
func IsDigest(reference string) bool {
return ref.DigestRegexp.MatchString(reference)View on GitHub (pinned to 7b2fd08cc5)
When it happens
Trigger: Thrown at src/pkg/distribution/distribution.go:111 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of goharbor/harbor@7b2fd08cc5 (2026-08-16).
Data as JSON: /api/errors/44a24f4a956ca62e.
Report an issue: GitHub.