goharbor/harbor · error · errs.baseError

10001

10001

Error message

no configuration

What it means

Error "no configuration" thrown in goharbor/harbor.

Source

Thrown at src/jobservice/api/handler.go:305

}

func (dh *DefaultHandler) handleError(w http.ResponseWriter, req *http.Request, code int, err error) {
	// Log all errors
	logger.Errorf("Serve http request '%s %s' error: %d %s", req.Method, req.URL.String(), code, err.Error())

	w.WriteHeader(code)
	writeDate(w, []byte(err.Error()))
}

func (dh *DefaultHandler) log(req *http.Request, code int, text string) {
	logger.Debugf("Serve http request '%s %s': %d %s", req.Method, req.URL.String(), code, text)
}

// HandleGetConfigReq return the config of the job service
func (dh *DefaultHandler) HandleGetConfigReq(w http.ResponseWriter, req *http.Request) {
	if config.DefaultConfig == nil || config.DefaultConfig.PoolConfig == nil || config.DefaultConfig.PoolConfig.RedisPoolCfg == nil {
		logger.Errorf("Failed to get config, config is nil")
		dh.handleError(w, req, http.StatusInternalServerError, errs.HandleJSONDataError(fmt.Errorf("no configuration")))
		return
	}
	dh.handleJSONData(w, req, http.StatusOK, &job.Config{
		RedisPoolConfig: config.DefaultConfig.PoolConfig.RedisPoolCfg,
	})
}

func extractQuery(req *http.Request) *query.Parameter {
	q := &query.Parameter{
		PageNumber: 1,
		PageSize:   query.DefaultPageSize,
		Extras:     make(query.ExtraParameters),
	}

	queries := req.URL.Query()
	// Page number
	p := queries.Get(query.ParamKeyPage)
	if !utils.IsEmptyStr(p) {

View on GitHub (pinned to 7b2fd08cc5)

When it happens

Trigger: Thrown at src/jobservice/api/handler.go:305 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/fe30386185ca3b1b. Report an issue: GitHub.