Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when configuring hostname with a / character #81

Open
simontigers opened this issue Sep 5, 2024 · 1 comment
Open

Error when configuring hostname with a / character #81

simontigers opened this issue Sep 5, 2024 · 1 comment

Comments

@simontigers
Copy link

registry:
hostname: ewr.vultrcr.com/XXXX
...

I'm encountering an issue when setting the hostname configuration to include a / character in the registry URL. Specifically, when I configure the hostname as ewr.vultrcr.com/XXXX, I receive the following error:

time="2024-09-05T09:49:50Z" level=error msg="[RefreshCatalog] Error fetching catalog: Get \"https:///v2/\": http: no Host in request URL" logger=registry.client
It seems like the / character in the hostname may be causing this issue. Could you please confirm if the hostname field supports URLs with paths, or if only the domain name (without /) is allowed?

Steps to Reproduce:

Set hostname: ewr.vultrcr.com/XXXX in the configuration.
Run the registry client and try to refresh the catalog.
Observe the error message.
Expected Behavior:
I expect the catalog to refresh without errors even when the hostname contains a path.

@roman-vynar
Copy link
Contributor

Yea, hostname option should not be an URL with path.
Moreover, I guess the underlying library github.com/google/go-containerregistry may not support this either...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants