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



  • 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



  • 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



  • 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



  • 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.



  • Strange same package works on nuget.org.



  • 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.



  • 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.



  • 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!



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



Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation