foojayio / foojayio/discoapi

Sporadic HTTP 400 on GET `/ids/<someId>`

Open
#137 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
154
Forks
17
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.