Skip to content

Title: bug: /api/streak endpoint returns 500 Internal Server Error for valid usernames #585

@gourikataneja

Description

@gourikataneja

Description

Problem

The /api/streak endpoint is consistently returning a 500 Internal Server Error for valid GitHub usernames.

Example:
/api/streak?user=Gourikataneja

The frontend loads correctly, but the API request fails and displays the error page.

  npm run dev
  1. Visit:

    http://localhost:3000/dashboard/Gourikataneja
  2. Open browser console/network tab

  3. Observe repeated 500 Internal Server Error responses from:

    /api/streak

Possible Cause

This may be related to:

  • environment variable handling
  • GitHub API authentication
  • missing fallback/error handling
  • invalid request parsing

Additional Context

The issue occurs for multiple usernames, not just a single profile.

I would like to work on this issue under GSSoC'26.

Steps to Reproduce

Steps to Reproduce

  1. Clone and run the project locally
  2. Start development server using:

Expected Behavior

Expected Behavior

The API should return streak data for valid GitHub usernames instead of failing with status 500.

Screenshots / Logs

Image

GitHub Username (If applicable)

gourikataneja

Environment

Chrome

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions