canonical / ubuntu-com-security-api

The API for CVEs and USNs data.
17 stars 9 forks source link

504 when requesting 100 notices #129

Open nottrobin opened 1 year ago

nottrobin commented 1 year ago

History here: https://chat.canonical.com/canonical/pl/4m1kkwir1f8x3fabk9b4dtgyjy

At the time of writing, https://ubuntu.com/security/notices.json works, https://ubuntu.com/security/notices.json?limit=20 works, but https://ubuntu.com/security/notices.json?limit=100 produces a 504 error. It's not clear right now if this has been the case for a long time or is a recent development.

Requesting 100 notices is probably not an unreasonable ask. We should see if it's possible to provide this. If it's not possible we should make it clear the maximum number that's supported by the API for querying at any one time.

samhotep commented 2 months ago

Added a hard limit of 20 for now https://github.com/canonical/ubuntu-com-security-api/pull/170

We'll keep 100 as a requirement for a new version of the API