Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
The hostname could not be parsed
-
Hey, i am trying to mgirate from nexus to proget for my chocolatey instance. I have everythign setup and it seems correct, but when i try to request data from the proget instance i get an error 500 on the client side and this in the proget logs:
An error occurred processing a GET request to https://my.domain.org:8625/nuget/ChocolateyInternal/v3/index.json: Invalid URI: The hostname could not be parsed. System.UriFormatException: Invalid URI: The hostname could not be parsed. at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind, UriCreationOptions& creationOptions) at Inedo.ProGet.Feeds.Feed.GetProGetBaseUrl() at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode) at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy`1.CreateValue() at Inedo.ProGet.WebApplication.FeedEndpoints.NuGet.V3.ServiceIndexHandler.WriteIndex(NuGetFeed feed, AhHttpContext context) at Inedo.ProGet.WebApplication.FeedEndpoints.NuGet.V3.ServiceIndexHandler.ProcessRequestAsync(NuGetFeed feed, WebApiContext apiContext, AhHttpContext context, String relativeUrl) at Inedo.ProGet.WebApplication.FeedEndpoints.NuGet.NuGetFeedHandler.ProcessRequestAsync(AhHttpContext context, WebApiContext apiContext, NuGetFeed feed, String relativeUrl) at Inedo.ProGet.WebApplication.FeedEndpoints.FeedEndpointHandler.FeedRequestHandler.ProcessRequestAsync(AhHttpContext context) ::Web Error on 1/15/2026 12:17:23 PM::I have no idea what this error could mean. My https settings look like this:

-
This error is occurring while ProGet is trying to generate the "base url". There are a few inputs that go into this:
- Admin > Advanced Settings > Base URL
- X-Forwarded Headers, set by a reverse proxy like ngnix
If any of those have an invalid host name (which is what the error is indicating), then you'll get this error. In most cases, it's a typo in the X-forwarded headers.
Thanks,
Alana