alan-turing-institute / whatwhat

A reimagining of nowwhat in OCaml
MIT License
0 stars 0 forks source link

502 bad gateway error when querying `Project Tracker` #18

Closed callummole closed 2 years ago

callummole commented 2 years ago

When querying Project Tracker, we get the following error:

Fatal error: exception Whatwhat.GithubRaw.HttpError("502 Bad Gateway")

We have tried with other project boards - the Project Tracker alone produces this error.

Error body is:

"message":"Something went wrong while executing your query. This may be the result of a timeout, or it could be a GitHub bug. Please includeEC1B:9FA5:18C0C1:19E235:630DDB9Dwhen reporting this issue."

callummole commented 2 years ago

Luckily the fix was quite simple, we were asking for too much data (e.g. https://github.com/orgs/community/discussions/24631).

Restriction the number of cards to 20 (cards(first: 20, after: CURSOR)) and using pagination successfully retrieves all issues