nuget-trends icon indicating copy to clipboard operation
nuget-trends copied to clipboard

Handle invalid packages in URL

Open sentry[bot] opened this issue 2 years ago • 0 comments
trafficstars

Sentry Issue: SPA-7A

Error: Http failure response for https://nugettrends.com/api/package/history/System.Diagnostics?months=3: 404 OK

Http failure response for https://nugettrends.com/api/package/history/System.Diagnostics?months=3: 404 OK

A blog post includes a link to nuget trends with an invalid package (System.Diagnostics). This creates an error. The site could just handle the 404 from the API and handle this with a message: "package XYZ doesn't exist".

Repro: https://nugettrends.com/packages?months=3&ids=Serilog&ids=NLog&ids=Microsoft.Extensions.Logging&ids=System.Diagnostics&ids=log4net

sentry[bot] avatar Jan 27 '23 19:01 sentry[bot]