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!

    500 when browsing nuget feed from Visual Studio

    Scheduled Pinned Locked Moved Support
    buildmastererrorfeedsnuget
    9 Posts 1 Posters 13 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.
    • ? This user is from outside of this forum
      Guest
      last edited by

      ProGet server just throws 500 when browsing nuget feed from Visual Studio.

      Any idea of how to get some more info from logs etc?

      Product: BuildMaster
      Version: 5.7.3

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        If you go to Admin > Logs you will be able to see the errors that are being thrown. Hopefully that will give some sort of clue

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          This is the detailed error message. Anyone has any idea?

          An error occurred processing a GET request to http://proget.mydomain.com/nuget/myfeed/Search()?$filter=IsLatestVersion&searchTerm=''&targetFramework=''&includePrerelease=false&$skip=0&$top=26&semVerLevel=2.0.0: Invalid URI: The format of the URI could not be determined.

          System.UriFormatException: Invalid URI: The format of the URI could not be determined.
          at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
          at Inedo.ProGet.Feeds.NuGet.OData.PackageAtomFormatter1.WritePackageRubbish(XmlWriter xml, String baseUrl, String feedName, ISet1 select, TPackage package)
          at Inedo.ProGet.Feeds.NuGet.OData.PackageAtomFormatter1.WriteAtomData(IEnumerable1 packages, XmlWriter xml, String baseUrl, String feedName, ISet1 select) at Inedo.ProGet.Feeds.NuGet.OData.PackageAtomFormatter1.WriteQuery(ISequenceSubset1 packages, TextWriter writer, String methodName, String baseUrl, String feedName, InlineCountMode inlineCountMode, ISet1 select)
          at Inedo.ProGet.WebApplication.FeedEndpoints.NuGet.ODataHandler.WriteQueryResults(IPackageFormatter1 packageFormatter, ODataResponseContext context, ISequenceSubset1 packageResults, Int32 feedId, String methodName, String baseUrl, String feedName, InlineCountMode inlineCount, ISet`1 select, Boolean singlePackage)
          at Inedo.ProGet.WebApplication.FeedEndpoints.NuGet.ODataHandler.<ProcessVirtualRequestAsync>d__10.MoveNext()
          --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
          at Inedo.ProGet.WebApplication.FeedEndpoints.NuGet.ODataHandler.<ProcessRequestAsync>d__9.MoveNext()
          --- End of stack trace from previous location where exception

          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            Based on the error, it seems that there is a package with bad data in it -- specifically a bad url (based on the error message). Unfortunately the error doesn't provide any details as to what the field specifically or what package it is.

            This doesn't happen if you create a connector to nuget.org and have no other packages on the feed, so it's a local package of sorts.

            1 Reply Last reply Reply Quote 0
            • ? This user is from outside of this forum
              Guest
              last edited by

              Strange same package works on nuget.org.

              1 Reply Last reply Reply Quote 0
              • ? This user is from outside of this forum
                Guest
                last edited by

                ok, empty package source gives no error. tried to add newtonsoft.json version 10.0.3. Downloaded from nuget.org and after that the feed is returning 500. Same exception as before.

                1 Reply Last reply Reply Quote 0
                • ? This user is from outside of this forum
                  Guest
                  last edited by

                  Hmm I have an idea; I wonder if it's your BaseUrl property in Admin > Advanced Settings. Perhaps makesure that's a totally valid url.

                  Otherwise this is going to take a bit of trial-and-error to isolate the problem. Basically when other people do exactly what you did, there isn't a problem.

                  I guess you'll want to attach fiddler, and find the exact request that's causing the 500. Now, certainly, this request alone won't help us... because we don't know which field it is.

                  But if you can try to modify the querystring or request (and use fiddler/browser to test it), and see if you can isolate if it's a particular parameter that seems to cause things to behave differently. If you can find the specifics, then we Maybe it'll help us to see the problem.

                  1 Reply Last reply Reply Quote 0
                  • ? This user is from outside of this forum
                    Guest
                    last edited by

                    It works now. I had not put in the scheme (http) in the base url.
                    Simple error but hard to find.

                    Thanks för your effort!

                    1 Reply Last reply Reply Quote 0
                    • ? This user is from outside of this forum
                      Guest
                      last edited by

                      I have created an issue to add a feature to display a better error message when the base url property is invalid.  (PG-1107)

                      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