goharbor/harbor · error · *errors.Error

BAD_REQUEST

BAD_REQUEST

Error message

failed to verify connection

What it means

Error "failed to verify connection" thrown in goharbor/harbor.

Source

Thrown at src/server/v2.0/handler/oidc.go:48

	BaseAPI
}

func newOIDCAPI() *oidcAPI {
	return &oidcAPI{}
}

func (o oidcAPI) PingOIDC(ctx context.Context, params oidc.PingOIDCParams) middleware.Responder {
	if err := o.RequireSystemAccess(ctx, rbac.ActionUpdate, rbac.ResourceConfiguration); err != nil {
		return o.SendError(ctx, err)
	}
	err := oidcpkg.TestEndpoint(oidcpkg.Conn{
		URL:        params.Endpoint.URL,
		VerifyCert: params.Endpoint.VerifyCert,
	})

	if err != nil {
		log.Errorf("Failed to verify connection: %+v, err: %v", params.Endpoint, err)
		return o.SendError(ctx, errors.New(nil).WithCode(errors.BadRequestCode).WithMessage("failed to verify connection"))
	}
	return oidc.NewPingOIDCOK()
}

View on GitHub (pinned to 7b2fd08cc5)

When it happens

Trigger: Thrown at src/server/v2.0/handler/oidc.go:48 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/493547ce61fde307. Report an issue: GitHub.