{"record":{"id":"493547ce61fde307","repo":"goharbor/harbor","slug":"bad-request-493547","errorCode":"BAD_REQUEST","errorMessage":"failed to verify connection","messagePattern":"failed to verify connection","errorType":"validation","errorClass":"*errors.Error","httpStatus":400,"severity":"error","filePath":"src/server/v2.0/handler/oidc.go","lineNumber":48,"sourceCode":"\tBaseAPI\n}\n\nfunc newOIDCAPI() *oidcAPI {\n\treturn &oidcAPI{}\n}\n\nfunc (o oidcAPI) PingOIDC(ctx context.Context, params oidc.PingOIDCParams) middleware.Responder {\n\tif err := o.RequireSystemAccess(ctx, rbac.ActionUpdate, rbac.ResourceConfiguration); err != nil {\n\t\treturn o.SendError(ctx, err)\n\t}\n\terr := oidcpkg.TestEndpoint(oidcpkg.Conn{\n\t\tURL:        params.Endpoint.URL,\n\t\tVerifyCert: params.Endpoint.VerifyCert,\n\t})\n\n\tif err != nil {\n\t\tlog.Errorf(\"Failed to verify connection: %+v, err: %v\", params.Endpoint, err)\n\t\treturn o.SendError(ctx, errors.New(nil).WithCode(errors.BadRequestCode).WithMessage(\"failed to verify connection\"))\n\t}\n\treturn oidc.NewPingOIDCOK()\n}\n","sourceCodeStart":30,"sourceCodeEnd":52,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/server/v2.0/handler/oidc.go#L30-L52","documentation":"Error \"failed to verify connection\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/server/v2.0/handler/oidc.go:48 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"}