Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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!

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

    Scheduled Pinned Locked Moved Support
    3 Posts 3 Posters 11 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      h.morgenthaler_3015
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer
        last edited by

        Hi @h-morgenthaler_3015, we are currently investigating this. ,It sounds like an issue we fixed in ProGet 2022 already, but maybe it didn't get merged over. Please stay tuned.

        1 Reply Last reply Reply Quote 1
        • rhessingerR Offline
          rhessinger inedo-engineer
          last edited by

          Hi @h-morgenthaler_3015,

          Alana was correct, the change was not merged into the 2023 release. The fix, PG-2350, will be released on Friday in ProGet 2023.4. If you need it earlier than Friday, I can push a pre-release version of ProGet 2023.4 for you. Please let me know!

          Thanks,
          Rich

          Products Engineer, Inedo

          1 Reply Last reply Reply Quote 1

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post
          Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation