goharbor/harbor · error
no auth handler registered for mode: %s
Error message
no auth handler registered for mode: %s
What it means
Error "no auth handler registered for mode: %s" thrown in goharbor/harbor.
Source
Thrown at src/pkg/p2p/preheat/provider/client/http_client.go:223
}
if (res.StatusCode / 100) != 2 {
// Return the server error content in the error.
return nil, errors.Errorf("%s %q error: %s %s", http.MethodPost, res.Request.URL.String(), res.Status, bytes)
} else if res.StatusCode == http.StatusAlreadyReported {
// Currently because if image was already preheated at least once, Dragonfly will return StatusAlreadyReported.
// And we should preserve http status code info to process this case later.
return bytes, &common_http.Error{Code: http.StatusAlreadyReported, Message: "status already reported"}
}
return bytes, nil
}
func (hc *HTTPClient) authorize(req *http.Request, cred *auth.Credential) error {
if cred != nil {
authorizer, ok := auth.GetAuthHandler(cred.Mode)
if !ok {
return fmt.Errorf("no auth handler registered for mode: %s", cred.Mode)
}
if err := authorizer.Authorize(req, cred); err != nil {
return err
}
}
return nil
}
View on GitHub (pinned to 7b2fd08cc5)
When it happens
Trigger: Thrown at src/pkg/p2p/preheat/provider/client/http_client.go:223 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/cdbae1c81654b51a.
Report an issue: GitHub.