dzcode-io / dzcode.io

Website & mobile app for Algerian open-source community
https://dzcode.io
MIT License
114 stars 41 forks source link

Internal Server Error issuesIncludingPRs.map is not a function #441

Closed omdxp closed 2 years ago

omdxp commented 2 years ago

Describe the bug During development, this issue happens only when I try to get the contributions after the mobile application ran.

To Reproduce Steps to reproduce the behavior:

  1. Run the mobile application by: yarn dev:mobile
  2. Run the simulator and Expo
  3. App open directly on the contributions screen
  4. useEffect run when the contributions screen mount which get the contributions
  5. Get the error: Internal Server Error issuesIncludingPRs.map is not a function from @dzcode.io/api

Expected behavior Get the contributions without an error

Screenshots

Screen Shot 2022-01-19 at 9 24 37 PM

Environment:

Additional context Rebased with latest commits from main branch, and it was not happening before.

omdxp commented 2 years ago

Solved, only the GITHUB_TOKEN was expired.