JaeSeoKim / badge42

🚀 Dynamically generated 42 badge for your git readmes.
https://badge42.vercel.app
MIT License
435 stars 38 forks source link

Internal server error and wrong info in cursus #69

Closed Nimon77 closed 2 years ago

Nimon77 commented 2 years ago

Hello, I have an internal server error when I try to access my piscine stats badge at this url and the infos displayed in the 42cursus badge are not good, the lvl is not right and the coalition are the one from my piscine 🥲

image

Thanks !

JaeSeoKim commented 2 years ago

May I know the ID of the account that is in error?

image
JaeSeoKim commented 2 years ago

In case of piscine in 42Seoul, I didn't think about it because there was no coalition. I will add a selection function for coalition.

Nimon77 commented 2 years ago

This is my account ID : cl1760y9m000609l6a99op4na

JaeSeoKim commented 2 years ago

https://github.com/JaeSeoKim/badge42/blob/7cd3225773dc848eaf4f5fd0bdb7bf2ff74c77df/components/badge/Stats/Stats.tsx#L55

In the case of Level, it was a problem because I did not change the part I wrote as a constant for the test. 🥲

JaeSeoKim commented 2 years ago
image

First, I resolved Internal server error.

Nimon77 commented 2 years ago

Nice ! Thanks !

JaeSeoKim commented 2 years ago

sorry for too late... added the coalition selection function

Nimon77 commented 2 years ago

Thanks, It seem not to work but maybe it's a CDN problem ? https://badge42.vercel.app/api/v2/stats/cl1760y9m000609l6a99op4na?cursusId=21&coalitionId=46 Screenshot from 2022-04-04 15-33-25

JaeSeoKim commented 2 years ago

Oops... It's working incorrectly because of the bracket issue. I fixed it.

JaeSeoKim commented 2 years ago
image
JaeSeoKim commented 2 years ago

@all-contributors please add @Nimon77 for bug

allcontributors[bot] commented 2 years ago

@JaeSeoKim

I've put up a pull request to add @Nimon77! :tada:

Nimon77 commented 2 years ago

Thank you !! Now all is good for me ;)