charts-syncer fails with "http: server gave HTTP response to HTTPS client"
search cancel

charts-syncer fails with "http: server gave HTTP response to HTTPS client"

book

Article ID: 439841

calendar_today

Updated On:

Products

VMware Tanzu Application Catalog

Issue/Introduction

When running the command 'charts-syncer sync --use-plain-http', it returns an error like below:

./charts-syncer sync --use-plain-http           
 ยป  Syncing charts
Error: unable to download index: failed to perform "FetchReference" on source: Get "https://localhost:5000/v2/helm-charts/opentelemetry-operator/charts-index/manifests/latest": http: server gave HTTP response to HTTPS client

Environment

TNZ App Catlog/Bitnami

Cause

This happens when using a local registry without https.

Resolution

An issue has been raised regarding this:

https://github.com/bitnami/charts-syncer/issues/351

The fix for this has been outlined here, and will be included in a future chart-syncer release.

https://github.com/bitnami/charts-syncer/pull/349