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

[Bug] Fern login fails on AL2003 / Node18 #4865

Open
Chaffelson opened this issue Oct 13, 2024 · 0 comments
Open

[Bug] Fern login fails on AL2003 / Node18 #4865

Chaffelson opened this issue Oct 13, 2024 · 0 comments
Assignees

Comments

@Chaffelson
Copy link

Chaffelson commented Oct 13, 2024

Describe the bug

Attempting to using Fern on AL2003 as a development environment fails.

[ec2-user@ip-172-31-9-254 fern_test]$ fern login
node:events:495
      throw er; // Unhandled 'error' event
      ^

Error: spawn xdg-open ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:284:19)
    at onErrorNT (node:internal/child_process:477:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ChildProcess instance at:
    at ChildProcess._handle.onexit (node:internal/child_process:290:12)
    at onErrorNT (node:internal/child_process:477:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn xdg-open',
  path: 'xdg-open',
  spawnargs: [
    'https://fern-prod.us.auth0.com/authorize?client_id=<snip>&response_type=code&connection=github&scope=openid+profile+email+offline_access&redirect_uri=http%3A%2F%2Flocalhost%3A3129&audience=venus-prod'
  ]
}

Node.js v18.20.4
Fern 0.44.11

To reproduce

Steps to reproduce the behavior:

  1. Deploy AL2003 server
  2. Setup for SSH development with Visual Studio Code or Cursor or similar
  3. Install node 18
  4. install fern
  5. run fern login

If relevant, provide a minimal API definition (OpenAPI or Fern Definition) or Docs configuration (docs.yml) that can be used to reproduce the error.

Expected behavior

Login should succeed, or at least not throw an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants