goharbor/harbor · error
%s: %v
Error message
%s: %v
What it means
Error "%s: %v" thrown in goharbor/harbor.
Source
Thrown at src/common/api/base.go:205
pageSize = maxPageSize
log.Debugf("the parameter page_size %d exceeds the max %d, set it to max", pageSize, maxPageSize)
}
return page, pageSize, nil
}
// ParseAndHandleError : if the err is an instance of utils/error.Error,
// return the status code and the detail message contained in err, otherwise
// return 500
func (b *BaseAPI) ParseAndHandleError(text string, err error) {
if err == nil {
return
}
if e, ok := err.(*commonhttp.Error); ok {
b.RenderError(e.Code, fmt.Sprintf("%s: %s", text, e.Message))
return
}
b.SendInternalServerError(fmt.Errorf("%s: %v", text, err))
}
// SendUnAuthorizedError sends unauthorized error to the client.
func (b *BaseAPI) SendUnAuthorizedError(err error) {
b.RenderError(http.StatusUnauthorized, err.Error())
}
// SendConflictError sends conflict error to the client.
func (b *BaseAPI) SendConflictError(err error) {
b.RenderError(http.StatusConflict, err.Error())
}
// SendNotFoundError sends not found error to the client.
func (b *BaseAPI) SendNotFoundError(err error) {
b.RenderError(http.StatusNotFound, err.Error())
}
// SendBadRequestError sends bad request error to the client.View on GitHub (pinned to 7b2fd08cc5)
When it happens
Trigger: Thrown at src/common/api/base.go:205 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/5cd683cab1b7f555.
Report an issue: GitHub.