Skip to content

Handle invalid packages in URL #216

@sentry-io

Description

@sentry-io

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions