{"record":{"id":"fe30386185ca3b1b","repo":"goharbor/harbor","slug":"10001","errorCode":"10001","errorMessage":"no configuration","messagePattern":"no configuration","errorType":"http","errorClass":"errs.baseError","httpStatus":500,"severity":"error","filePath":"src/jobservice/api/handler.go","lineNumber":305,"sourceCode":"}\n\nfunc (dh *DefaultHandler) handleError(w http.ResponseWriter, req *http.Request, code int, err error) {\n\t// Log all errors\n\tlogger.Errorf(\"Serve http request '%s %s' error: %d %s\", req.Method, req.URL.String(), code, err.Error())\n\n\tw.WriteHeader(code)\n\twriteDate(w, []byte(err.Error()))\n}\n\nfunc (dh *DefaultHandler) log(req *http.Request, code int, text string) {\n\tlogger.Debugf(\"Serve http request '%s %s': %d %s\", req.Method, req.URL.String(), code, text)\n}\n\n// HandleGetConfigReq return the config of the job service\nfunc (dh *DefaultHandler) HandleGetConfigReq(w http.ResponseWriter, req *http.Request) {\n\tif config.DefaultConfig == nil || config.DefaultConfig.PoolConfig == nil || config.DefaultConfig.PoolConfig.RedisPoolCfg == nil {\n\t\tlogger.Errorf(\"Failed to get config, config is nil\")\n\t\tdh.handleError(w, req, http.StatusInternalServerError, errs.HandleJSONDataError(fmt.Errorf(\"no configuration\")))\n\t\treturn\n\t}\n\tdh.handleJSONData(w, req, http.StatusOK, &job.Config{\n\t\tRedisPoolConfig: config.DefaultConfig.PoolConfig.RedisPoolCfg,\n\t})\n}\n\nfunc extractQuery(req *http.Request) *query.Parameter {\n\tq := &query.Parameter{\n\t\tPageNumber: 1,\n\t\tPageSize:   query.DefaultPageSize,\n\t\tExtras:     make(query.ExtraParameters),\n\t}\n\n\tqueries := req.URL.Query()\n\t// Page number\n\tp := queries.Get(query.ParamKeyPage)\n\tif !utils.IsEmptyStr(p) {","sourceCodeStart":287,"sourceCodeEnd":323,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/jobservice/api/handler.go#L287-L323","documentation":"Error \"no configuration\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/jobservice/api/handler.go:305 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7b2fd08cc568955cca339afeefab27372840d936","analyzedAt":"2026-08-16T00:00:10.961Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}