goharbor/harbor · error

[VolcengineCR adapt] fail to parse reference

Error message

[VolcengineCR adapt]  fail to parse reference

What it means

Sentinel errPareseDigest used when resolving an artifact reference: either digest.Parse of the reference failed (volccr.go:270) or a ListTags response came back unusable (volccr.go:286), so the reference cannot be resolved to a concrete digest for the Volcengine registry.

Solutions

  1. Use a valid digest (sha256:...) or a resolvable tag as the reference
  2. Retry when the underlying ListTags response was empty/malformed
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/pkg/reg/adapter/volcenginecr/consts.go:26 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/3577e81962510de9. Report an issue: GitHub.

Appendix: source

Thrown at src/pkg/reg/adapter/volcenginecr/consts.go:26

//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package volcenginecr

import "errors"

var (
	regionRegs = map[string]any{
		"(.*)-(cn-.*)": nil,
	}
	errListNamespaceResp    = errors.New("[VolcengineCR adapt] ListNamespaces resp nil")
	errListRepositoriesResp = errors.New("[VolcengineCR adapt] ListRepositories resp nil")
	errListTagsResp         = errors.New("[VolcengineCR adapt] ListTags resp nil")
	errPareseDigest         = errors.New("[VolcengineCR adapt]  fail to parse reference")
	errNilVolcCrClient      = errors.New("[volcengine-cr.createRepository] nil volcCr client")
)

const (
	MaxPageSize     int64 = 100
	concurrentLimit int   = 3
)

View on GitHub (pinned to 7b2fd08cc5)