[BUG]: Expired GitHub PAT displays a generic HTTP error instead of an authentication warning

Open
#404 4 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@Prince-ES is already working on this.

Since Oct 24, 2026.

  • #415 by @Prince-ES — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
58/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
github, javascript

Research direction

Start at the organization search flow and trace how GitHub API errors are handled, comparing an expired or invalid PAT response with the existing rate limit message. Add an authentication warning for invalid or expired tokens, then verify that searches display it while rate limit errors retain their current message.

Written by the indexing model from the issue text.

Description

bug
Bug Description

When a configured GitHub Personal Access Token (PAT) expires or becomes invalid, OrgExplorer fails to provide a clear error message explaining the authentication problem.

When the unauthenticated GitHub API rate limit of 60 requests per hour is exhausted, the application correctly displays:

GitHub API rate limit reached. Add a PAT in Settings for 5,000 req/hr.

However, when the configured PAT expires, searching for an organization results in a generic HTTP error instead of informing the user that their token may be expired or invalid.

Steps to Reproduce
  1. Open OrgExplorer and configure a GitHub PAT in Settings.
  2. Allow the PAT to expire or use an invalid/revoked token.
  3. Return to the organization search page.
  4. Search for any organization.
  5. Observe the error message displayed.
Logs and Screenshots

No response

Environment Details

No response

Impact

High - Major feature is broken

Code of Conduct
  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates
Dominant language
JavaScript
Stars
53
Forks
187
Avg merge
18m
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AOSSIE-Org/OrgExplorer

All issues in AOSSIE-Org/OrgExplorer

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.