goharbor/harbor · error
Invalid url
Error message
Invalid url
What it means
Error "Invalid url" thrown in goharbor/harbor.
Source
Thrown at src/pkg/reg/adapter/volcenginecr/helper.go:34
import (
"errors"
"fmt"
"net/http"
"regexp"
"github.com/docker/distribution/registry/client/auth/challenge"
"github.com/goharbor/harbor/src/lib/config"
"github.com/goharbor/harbor/src/lib/log"
"github.com/goharbor/harbor/src/pkg/reg/util"
)
func getRegionRegistryName(url string) (string, string, error) {
reg := regexp.MustCompile(`https://(.*)\.cr\.volces|ivolces\.com`)
rs := reg.FindStringSubmatch(url)
if rs == nil || len(rs) != 2 {
return "", "", errors.New("Invalid url")
}
registryNameRegion := rs[1]
for regionReg := range regionRegs {
reg = regexp.MustCompile(regionReg)
res := reg.FindStringSubmatch(registryNameRegion)
if res == nil || len(res) != 3 {
log.Debug("fail to match", "reg", regionReg)
continue
}
return res[2], res[1], nil
}
return "", "", errors.New("invalid region")
}
var resolveHost = func(host string) string { return host }
func getRealmService(host string, insecure bool, caCert string) (string, string, error) {View on GitHub (pinned to 7b2fd08cc5)
When it happens
Trigger: Thrown at src/pkg/reg/adapter/volcenginecr/helper.go:34 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/27509a2f7be75d21.
Report an issue: GitHub.