cake-contrib / Cake.AddinDiscoverer

Tool to aid with discovering information about Cake Addins
MIT License
5 stars 6 forks source link

Response status code does not indicate success: 404 (The specified blob does not exist.) #234

Closed Jericho closed 1 month ago

Jericho commented 1 month ago

AddinDiscoverer has been failing since June 14 2024 with the following exception and stack trace:

***** Analyze addins *****
System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (The specified blob does not exist.).
   at HttpResponseMessage System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at async Task<string> System.Net.Http.HttpClient.GetStringAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
   at async Task Cake.AddinDiscoverer.Steps.AnalyzeStep.ExecuteAsync(DiscoveryContext context, TextWriter log, CancellationToken cancellationToken) in C:/projects/cake-addindiscoverer/Source/Cake.AddinDiscoverer/Steps/AnalyzeStep.cs:line 41
   at async Task<ResultCode> Cake.AddinDiscoverer.AddinDiscoverer.LaunchDiscoveryAsync() in C:/projects/cake-addindiscoverer/Source/Cake.AddinDiscoverer/AddinDiscoverer.cs:line 164

This happens when we try to retrieve the JSON file containing package owners to overcome the fact that NuGet does not return ownership info when retrieving package metadata (see here for details: https://github.com/NuGet/NuGetGallery/issues/5647). It was made clear to us that retrieving the JSON file was unofficial, undocumented and could change at any point. Well... it worked fine for 6 years and finally stopped working.