DenverCoder1 / github-readme-streak-stats

🔥 Stay motivated and show off your contribution streak! 🌟 Display your total contributions, current streak, and longest streak on your GitHub profile README
https://streak-stats.demolab.com
MIT License
4.66k stars 720 forks source link

Vercel deployed version no longer working properly #654

Closed joshlawlor closed 6 months ago

joshlawlor commented 7 months ago

Describe the bug My personal access token expired, so I went in and created a new one. That is when this issue began. My vercel says the initial project is still deployed and build ran fine. But I am unable to access the streaks.

I get the following error when attempting to access 'https://github-readme-streak-stats-blue-one.vercel.app/?user=joshlawlor':

Fatal error: Uncaught Error: Call to undefined function curl_init() in /var/task/user/api/stats.php:234 Stack trace: #0 /var/task/user/api/stats.php(49): getGraphQLCurlHandle('query {\n ...', 'ghp_ejVPeNdAomW...') #1 /var/task/user/api/stats.php(126): executeContributionGraphRequests('joshlawlor', Array) #2 /var/task/user/api/index.php(38): getContributionGraphs('joshlawlor', NULL) #3 {main} thrown in /var/task/user/api/stats.php on line 234

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://github-readme-streak-stats-blue-one.vercel.app/?user=joshlawlor'
  2. See error

Expected behavior

  1. Go to 'https://github-readme-streak-stats-blue-one.vercel.app/?user=joshlawlor'
  2. See stats

Screenshots image

Desktop (please complete the following information):

tribhuwan-kumar commented 7 months ago

I'm also getting the same error:

Fatal error: Uncaught Error: Call to undefined function curl_init() in /var/task/user/api/stats.php:234 Stack trace: #0 /var/task/user/api/stats.php(49): getGraphQLCurlHandle('query {\n ...', 'ghp_CQrZabakULW...') #1 /var/task/user/api/stats.php(126): executeContributionGraphRequests('tribhuwan-kumar', Array) #2 /var/task/user/api/index.php(37): getContributionGraphs('tribhuwan-kumar', NULL) #3 {main} thrown in /var/task/user/api/stats.php on line 234

Is there any solution you got ?

DenverCoder1 commented 6 months ago

Try using vercel-php@0.6.1 in vercel.json

joshlawlor commented 6 months ago

Try using vercel-php@0.6.1 in vercel.json

This worked! Thanks @DenverCoder1