Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If OAuth fails, redirect to a useful error page #454

Open
nerdalert opened this issue Jan 3, 2025 · 0 comments
Open

If OAuth fails, redirect to a useful error page #454

nerdalert opened this issue Jan 3, 2025 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@nerdalert
Copy link
Member

Currently the token on ui SaaS has expired and it redirects to a 404. You can replicate the behavior by putting in a bogus Github token in the .env.

Here are client logs:

GET http://localhost:3000/error?error=AccessDenied 404 (Not Found)Understand this errorAI
Navigated to http://localhost:3000/error?error=AccessDenied

Here are server logs:

2025-01-03T21:53:14.104Z error: Error fetching GitHub organization membership for user nerdalert: Request failed with status code 401
 GET /api/auth/callback/github?code=xxxxxxxxxx&state=S-nZhFRwRPIH94q1uuS5Q 302 in 979ms
 GET /api/auth/error?error=AccessDenied 302 in 7ms
 GET /error?error=AccessDenied 404 in 19ms

@nerdalert nerdalert added bug Something isn't working help wanted Extra attention is needed labels Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant