dzcode-io/dzcode.io

BUG: All github-realted `./api` endpoints fails when github service fails

ZibanPirate opened this issue · 0 comments

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.

Screenshots
image

Environment:

  • OS: All
  • Browser: All
  • Version: v4.0.0

Additional context