Skip to content

Error when configuring hostname with a / character #81

@simontigers

Description

@simontigers

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions