Skip to content

[Bug]: Contributor Profile Shows “User Not Found” for API Errors #629

@mayurigade-hub

Description

@mayurigade-hub

What is happening?
When the GitHub API request fails for reasons like rate limit, network error, or server error, the page still shows:

User not found.

Why is this a problem?
This message is misleading. The user may exist, but the app could not load the data. Users will think the GitHub username is wrong when the real problem is an API or connection failure.

How to fix it:
Add a separate error state in ContributorProfile.tsx. Show User not found only for 404, and show a different message for other failures, like:

Unable to load contributor profile. Please try again later.

Steps to Reproduce:

  1. Open any contributor profile page.
  2. Block the GitHub API request, disconnect the internet, or hit GitHub rate limits.
  3. Wait for the page to finish loading.
  4. The page shows User not found even though the user may exist.

Files affected:
src/pages/ContributorProfile/ContributorProfile.tsx

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions