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!

    NullReferenceException at Inedo.ProGet.Feeds.NuGet.NuGetConnector.FindPackagesByIdAsync

    Scheduled Pinned Locked Moved Support
    7 Posts 4 Posters 41 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.
    • V Offline
      viceice
      last edited by

      Today i got some proget errors from my github package connector:

      System.NullReferenceException: Object reference not set to an instance of an object.
      at Inedo.ProGet.Feeds.NuGet.NuGetConnector.FindPackagesByIdAsync(NuGetQueryOptions options, String id) in C:\InedoAgent\BuildMasterTemp\192.168.44.60\Temp\_E91433\Src\ProGetCoreEx\Feeds\NuGet\NuGetConnector.cs:line 296
      

      My connector:

      9f35d0dc-e721-46b9-a2ff-00c049e4fd6d-image.png

      Using ProGet on Docker for Linux: Version 5.3.19 (Build 9)

      proget.inedo.com/productimages/inedo/proget:5.3.19@sha256:03b64607a3c7be571bc37acec8965efa05723994678d8f99ecac6e45d7ae8c53

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

        Hi @viceice,

        This typically happens because the NuGet package metadata has an invalid format. Does this error happen for all packages or just one?

        We run into similar issues when connecting to Azure DevOps registries because they do not always follow NuGet's API spec. Are you able to send over the package registration metadata for a package with the issue? The index.json may also help with this. If you do not feel comfortable submitting this via the forums, you can email it to support@inedo.com. Just please let me know when you send it so I know to look in that mailbox for it.

        Thanks,
        Rich

        Products Engineer, Inedo

        1 Reply Last reply Reply Quote 0
        • V Offline
          viceice
          last edited by

          I'm not sure which package causes this issue, but the packages are all public, see https://github.com/orgs/visualon/packages

          I'm pretty sure it was one of those packages:
          4a776dd4-03fa-44bb-b9d5-a37b60f50a7a-image.png

          You need a github account to use the feed above, because github requires you to login.
          So i think you should be able to reproduce the issue.

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

            Hi @viceice,

            I took a look at this and it looks like the issue is that the GitHub repository is not returning the published date. I have put a fix in, PG-1871, which will release in ProGet 5.3.21.

            Thanks,
            Rich

            Products Engineer, Inedo

            1 Reply Last reply Reply Quote 1
            • RobIIIR Offline
              RobIII
              last edited by RobIII

              I'm experiencing the same (or something very similar:

              061dedd3-e981-439f-b02d-8d6713fb2770-image.png

              This started happening quite recently but I don't have an exact date. We were running ProGet 5.3.31 if I'm not mistaken and upgraded to the current 5.3.35. We're using a connector to a (on-premise) GitLab Nuget feed. The GitLab nuget feed is fine; I can connect VS2019 directly to it and this works fine.

              I will contact support@inedo.com with the contents of the index.json and query json files.

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

                Hi @RobIII,

                We received the email, please give us a little bit of time to review this and we will get back to you soon!

                Thanks,
                Rich

                Products Engineer, Inedo

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

                  Hi @RobIII ,

                  Thanks for sending that over; we've reviewed it, but nothing is jumping out as a problem. I'm thinking it's something else...

                  Can we do this?

                  At first, let's move this to a new topic. I'm going to lock this thread, can you reply as a new topic? The reason for this is so that we can track much easier.

                  Is it possible to share access to your GitLab repository? That's the easiest thing of course, but you say "on-prem" so maybe not so easy.

                  As an alternative, can you create a simple reproduction case using a public GitLab repository? This way, we can plug ProGet into it, attach a debugger, and figure out what's going on.

                  The most likely scenario is that GitLab doing something wrong/weird against the spec, but it just happens to work in Visual Studio. That was the sitaution of GitHub.

                  Thanks,
                  Alana

                  1 Reply Last reply Reply Quote 0

                  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