juicedata/juicefs · error
Invalid endpoint %s: %s
Error message
Invalid endpoint %s: %s
What it means
url.ParseRequestURI rejected the OpenStack Swift endpoint after default scheme prefixing. Validation guard: the endpoint is not a well-formed URI (malformed host, invalid characters, or bad scheme separator), preventing client construction.
Source
Thrown at pkg/object/swift.go:133
return nil, err
}
return &obj{
key,
object.Bytes,
object.LastModified,
strings.HasSuffix(key, "/"),
"",
"",
}, err
}
func newSwiftOSS(endpoint, username, apiKey, token string) (ObjectStorage, error) {
if !strings.Contains(endpoint, "://") {
endpoint = fmt.Sprintf("http://%s", endpoint)
}
uri, err := url.ParseRequestURI(endpoint)
if err != nil {
return nil, fmt.Errorf("Invalid endpoint %s: %s", endpoint, err)
}
if uri.Scheme != "http" && uri.Scheme != "https" {
return nil, fmt.Errorf("Invalid uri.Scheme: %s", uri.Scheme)
}
hostSlice := strings.SplitN(uri.Host, ".", 2)
if len(hostSlice) != 2 {
return nil, fmt.Errorf("Invalid host: %s", uri.Host)
}
container := hostSlice[0]
host := hostSlice[1]
// current only support V1 authentication
authURL := uri.Scheme + "://" + host + "/auth/v1.0"
conn := swift.Connection{
UserName: username,
ApiKey: apiKey,View on GitHub (pinned to c9a67b23e8)
Solutions
- Provide a valid http(s) endpoint, e.g. https://container.auth.domain/v1
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at pkg/object/swift.go:133 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of juicedata/juicefs@c9a67b23e8 (2026-09-06).
Data as JSON: /api/errors/c335ab2b38eae461.
Report an issue: GitHub.