BUG: All github-realted `./api` endpoints fails when github service fails
ZibanPirate opened this issue · 0 comments
ZibanPirate commented
Describe the bug
- whenever GitHub service calls fail, the API endpoint fails too, even though we have cache data that we can fallback to
To Reproduce
You need to stress test it to reproduce it.
- either: make many changes to the GitHub repo that is listed in dzcode.io/contibute
- or, mock the Github service in
./api
and make it fail (throw an error)
Expected behavior
- it should fall back to the cache responses.
Environment:
- OS: All
- Browser: All
- Version: v4.0.0
Additional context
- reported by Sentry here:
https://sentry.io/share/issue/acd25f6d554344b9a42908a33c8a913a/