[bug] Opencode Zen login failing #1899

Closed
opened 2026-02-16 17:33:08 -05:00 by yindo · 2 comments
Owner

Originally created by @allen-n on GitHub (Oct 1, 2025).

I'm getting the following when trying to log in with the github provider.

{
  "error": true,
  "url": "https://opencode.ai/auth/callback?error=server_error&error_description=emails.find+is+not+a+function",
  "statusCode": 500,
  "statusMessage": "Server Error",
  "message": "Server Error"
}

Repro steps:

  1. Navigate to https://opencode.ai/
  2. Click opencode zen on the top right (to navigate to the sign in url)
  3. Click the github auth provider
  4. Error
Originally created by @allen-n on GitHub (Oct 1, 2025). I'm getting the following when trying to log in with the github provider. ```json { "error": true, "url": "https://opencode.ai/auth/callback?error=server_error&error_description=emails.find+is+not+a+function", "statusCode": 500, "statusMessage": "Server Error", "message": "Server Error" } ``` Repro steps: 1. Navigate to https://opencode.ai/ 2. Click `opencode zen` on the top right (to navigate to [the sign in url](https://auth.opencode.ai/authorize?client_id=app&redirect_uri=https%3A%2F%2Fopencode.ai%2Fauth%2Fcallback&response_type=code&state=ceb05b1b-9fac-4ca3-8a68-4040347a04a1)) 3. Click the github auth provider 4. Error
yindo closed this issue 2026-02-16 17:33:08 -05:00
Author
Owner

@allen-n commented on GitHub (Oct 1, 2025):

Aaand now it works 🤦‍♂️

@allen-n commented on GitHub (Oct 1, 2025): Aaand now it works 🤦‍♂️
Author
Owner

@github-actions[bot] commented on GitHub (Oct 1, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #2400: Very similar GitHub authentication failure with server_error and email-related issues, though showing "No email found" instead of "emails.find is not a function"
  • #2782: Related to GitHub email issues affecting Zen access, suggesting email-based authentication problems

The error pattern and GitHub authentication context are very similar to #2400. Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 1, 2025): This issue might be a duplicate of existing issues. Please check: - #2400: Very similar GitHub authentication failure with server_error and email-related issues, though showing "No email found" instead of "emails.find is not a function" - #2782: Related to GitHub email issues affecting Zen access, suggesting email-based authentication problems The error pattern and GitHub authentication context are very similar to #2400. Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1899