Skip to content

Sporadic HTTP 400 on GET /ids/<someId> #137

@joffrey-bion

Description

@joffrey-bion

I sometimes get a 400 response with Package id not found. For instance:

GET https://api.foojay.io/disco/v3.0/ids/552c7bffe0370c66410a51c55985b511
invalid: 400 Bad Request
Text: "{"result":[],"message":"Package id not found"}"

I see 2 problems here:

  1. I retried this same URL later and the package was found (so maybe it was a sporadic error?)
  2. For an ID that's not found, HTTP 404 would be more appropriate than HTTP 400

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