Navigation

    Inedo Community Forums

    Forums

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. h.morgenthaler_3015
    3. Posts
    H
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by h.morgenthaler_3015

    • ProGet -> Helm: Unable to cast object of type 'System.String' to type 'Inedo.ProGet.Feeds.IComparablePackageVersion'.

      Hi

      We're encountering the following error with our helm-chart-feed when trying to download a chart (does not matter if using helm-cli or direct http-request):

      Message: "An error occurred processing a GET request to https://packages-01.net.ingtes.ch/helm/helm-dev/ingtes-success-mobile-host/0.2.0/ingtes-success-mobile-host-0.2.0.tgz: Unable to cast object of type 'System.String' to type 'Inedo.ProGet.Feeds.IComparablePackageVersion'."
      Details: "System.InvalidCastException: Unable to cast object of type 'System.String' to type 'Inedo.ProGet.Feeds.IComparablePackageVersion'.
      at Inedo.ProGet.Feeds.StandardPackageFeed`3.GetDownloadBlockReasonAsync(IStandardPackageMetadata package, Boolean bypassFreeEditionCheck)
      at Inedo.ProGet.WebApplication.FeedEndpoints.Helm.HelmFeedHandler.ProcessChartArchiveRequestAsync(AhHttpContext context, WebApiContext apiContext, HelmFeed feed, String name, String version)
      at Inedo.ProGet.WebApplication.FeedEndpoints.Helm.HelmFeedHandler.ProcessRequestAsync(AhHttpContext context, WebApiContext apiContext, HelmFeed feed, String relativeUrl)
      at Inedo.ProGet.WebApplication.FeedEndpoints.FeedEndpointHandler.FeedRequestHandler.ProcessRequestAsync(AhHttpContext context)
      

      We strongly suspect this is a classic c# casting bug introduced with 2023.0.0.

      • The issue is reproducible whenever we upgrade from v2022.0.29
      • Downgrading to v2022.0.29 resolves the issue

      More info:

      • Installed on Windows Server 2022 with Inedo Hub
      • The last version working for us is 2022.0.29
      • Affected Version: ProGet 2023.0.0 and higher

      Thx for having a look.

      Kind regards
      Hannes Morgenthaler

      posted in Support
      H
      h.morgenthaler_3015
    • 1 / 1