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!

    Null reference exception on nuget package from connector

    Scheduled Pinned Locked Moved Support
    11 Posts 3 Posters 32 Views
    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.
    • stevedennisS Offline
      stevedennis inedo-engineer @claudio_9251
      last edited by

      Hi @claudio_9251

      I believe that Telerik has a buggy/quirky API implementation, and sends invalid/broken metadata. It happens to work in Visual Studio, and I guess an older ProGet.

      Anyways, if you can send us some credentials / instructions to connect to your Telerik feed, we will connect and attach a debugger, and trace the bad metadata.

      You can email those to support at inedo dot com -- just reference [QA-743] in the subject. And please let us know when you send them email, because we don't monitor that address.

      Cheers,
      Steve

      1 Reply Last reply Reply Quote 0
      • C Offline
        claudio_9251
        last edited by

        Hello @stevedennis,
        thanks for your quick response. You can check your email; I have sent you some additional informations.

        I can confirm that Telerik's nuget API are working as expected on Visual Studio (2019/2022) and Nuget Package Explorer.

        Cheers,
        Claudio

        1 Reply Last reply Reply Quote 0
        • Dan_WoolfD Offline
          Dan_Woolf inedo-engineer
          last edited by

          Hi @claudio_9251,

          Thanks for sending this over. I can confirm we have received your email. Please give us a little bit of time to review and we will get back with your shortly.

          Thanks,
          Dan

          1 Reply Last reply Reply Quote 0
          • Dan_WoolfD Offline
            Dan_Woolf inedo-engineer
            last edited by

            Hi @claudio_9251,

            Thanks I was able to reproduce this and logged the fix as ticket PG-2077. This fix will be released in ProGet 6.0.6.

            Thanks,
            Dan

            1 Reply Last reply Reply Quote 0
            • C Offline
              claudio_9251
              last edited by

              Hi @Dan_Woolf ,
              thanks for your quick feedback and fix, I'm going to reset Telerik access.

              Cheers,
              Claudio

              1 Reply Last reply Reply Quote 0
              • Dan_WoolfD Offline
                Dan_Woolf inedo-engineer
                last edited by

                Hi @claudio_9251,

                Always happy to help! Please let us know if you still run into issues after the updgrade.

                Thanks,
                Dan

                C 1 Reply Last reply Reply Quote 0
                • C Offline
                  claudio_9251 @Dan_Woolf
                  last edited by claudio_9251

                  Hi @Dan_Woolf,
                  we have upgraded the system.

                  Now we can see connector infos via web UI, and we can perform some operations like manual download and proget pull.

                  But we are hitting a new issue when we are trying to install a new version of a package that is not already pulled into ProGet: it seems it not exists.

                  In example package manager console returns this:

                  Install-Package Package.Name -Version 1.2.3.4
                  
                  Package 'Package.Name 1.2.3.4' is not found in the following primary source(s): 'http://proget.mydomain.internal/nuget/test/'. Please verify all your online package sources are available (OR) package 
                  id, version are specified correctly.
                  

                  Via both VS2022 and Nuget Package Explorer we are also unable to list available versions from Connectors: we only see pulled versions.

                  I'm not sure is related, but on connector page the counter still count 0
                  46ac8e32-8284-44d7-a41d-d6e7e00aba8d-image.png

                  stevedennisS 1 Reply Last reply Reply Quote 0
                  • stevedennisS Offline
                    stevedennis inedo-engineer @claudio_9251
                    last edited by

                    Hi @claudio_9251 ,

                    This is most certainly another bug/quirk with Telerik's proprietary feed, and them not following the clear NuGet API specifications 🙄

                    If it's easy we'll consider trying to work-around, but otherwise they really need to be following the API specifications. Or they should migrate away from their own server, like how Infragistics did ;)

                    Anyway, if you can share the specific HTTP request that is return an unexpected result (it's probably some GET query that returns 404?), then we can try that against the same credentials you sent earlier, and attach a debugger to see what's going on, and if it's an easy fix.

                    You can find this request by attaching Fiddler, then doing a side-by-side comparison in Visual Studio.

                    Cheers,
                    Steve

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      claudio_9251
                      last edited by

                      With Fiddler comparison I have found that our feed was configured to expose nuget with v2 apis only. (ODATA v2)

                      Enabling JSON-LD (v3) api and appending v3/index.json to api url solve my issue and all is working as expected.

                      I think that something is missing on Proget on v2 only implementation. Not a big deal for me, but maybe is something to consider for the product.

                      1 Reply Last reply Reply Quote 0
                      • Dan_WoolfD Offline
                        Dan_Woolf inedo-engineer
                        last edited by

                        Hi @claudio_9251,

                        I'm not too surprised by this. NuGet has deprecated many of it's ODATA( v2) endpoints which has caused some issue within ProGet, we have documented this in our NuGet v2 troubleshooting guide. It is very possible that Telerik (Progress) has not made these changes on their end which may be causing this. This is especially true when it comes to connectors because ProGet will pass through a lot of the V2 queries the client makes to the remote endpoint. Either way, the NuGet v3 API is the proper API to use going forward and we highly suggest using that.

                        Thanks,
                        Dan

                        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