goharbor/harbor · error

[tencent-tcr.newAdapter] Can not get TCR instance info. Requ

Error message

[tencent-tcr.newAdapter] Can not get TCR instance info. RequestId=%s

What it means

Error "[tencent-tcr.newAdapter] Can not get TCR instance info. RequestId=%s" thrown in goharbor/harbor.

Source

Thrown at src/pkg/reg/adapter/tencentcr/adapter.go:149

		return
	}

	var req = tcr.NewDescribeInstancesRequest()
	req.AllRegion = common.BoolPtr(true)
	req.Filters = []*tcr.Filter{
		{
			Name:   common.StringPtr("RegistryName"),
			Values: []*string{common.StringPtr(strings.ReplaceAll(registryURL.Host, ".tencentcloudcr.com", ""))},
		},
	}
	var resp *tcr.DescribeInstancesResponse
	resp, err = client.DescribeInstances(req)
	if err != nil {
		log.Errorf("DescribeInstances error=%s", err.Error())
		return
	}
	if *resp.Response.TotalCount == 0 {
		err = fmt.Errorf("[tencent-tcr.newAdapter] Can not get TCR instance info. RequestId=%s", *resp.Response.RequestId)
		return
	}
	var instanceInfo = resp.Response.Registries[0]
	log.Debugf("[tencent-tcr.InstanceInfo] registry.URL=%s, host=%s, PublicDomain=%s, RegionName=%s, RegistryId=%s",
		registry.URL, registryURL.Host, *instanceInfo.PublicDomain, *instanceInfo.RegionName, *instanceInfo.RegistryId)

	// rebuild TCR SDK client
	client = &tcr.Client{}
	client.Init(*instanceInfo.RegionName).
		WithCredential(tcrCredential).
		WithProfile(cfp).
		WithHttpTransport(rateLimiterTransport)

	var credential = NewAuth(instanceInfo.RegistryId, client)
	var transport = commonhttp.GetHTTPTransport(
		commonhttp.WithInsecure(registry.Insecure),
		commonhttp.WithCACert(registry.CACertificate),
	)

View on GitHub (pinned to 7b2fd08cc5)

When it happens

Trigger: Thrown at src/pkg/reg/adapter/tencentcr/adapter.go:149 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/87ee5d4684f6aaec. Report an issue: GitHub.