Platane / snk

🟩⬜ Generates a snake game from a github user contributions graph and output a screen capture as animated svg or gif
https://platane.github.io/snk
4.22k stars 1.03k forks source link

The web demo doesn't work #98

Closed ivan-developer-01 closed 11 months ago

ivan-developer-01 commented 11 months ago

The web demo (https://platane.github.io/snk/) doesn't work. It says "error :(":

screenshot

It does so for every profile:

screenshot
screenshot
screenshot

Do you know how to fix this?

ivan-developer-01 commented 11 months ago

For example, let's take octocat. I see that the app requests the service "https://snk-one.vercel.app" with the URL "https://snk-one.vercel.app/api/github-user-contribution/octocat".

But the service responds 500. It means... something is probably wrong with your service or with the server. I've checked that another Vercel apps (e.g. "https://github-profile-trophy.vercel.app/?username=octocat") works.

Platane commented 11 months ago

thanks for the report, I am looking for a fix

Platane commented 11 months ago

it's fixed :smile:

the issue was that the vercel was running on node16, where the fetch API is not available

thanks :+1: