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

Tunnel doesn't always open #175

Open
JonathanSouthern opened this issue Apr 1, 2020 · 1 comment
Open

Tunnel doesn't always open #175

JonathanSouthern opened this issue Apr 1, 2020 · 1 comment

Comments

@JonathanSouthern
Copy link

I'm not running multiple tunnels at the same time or anything, yet I recieve this error without further details. Using the same code I was able to open a tunnel only half the time.

Specs

  • Node Version: v10.19.0
  • Ngrok Version: 3.2.7
  • NPM Version: 6.13.4
  • Operating System: WSL (Ubuntu)

Code

const localhostOptions = {
  port: 2000, 
  authtoken: process.env.NGROK_TOKEN
}

async function create() {
    localhostURL = await ngrok.connect(localhostOptions)
      .catch(err => console.error(err))
    console.log('Tunnel open at ', localhostURL)
}

  create();

Error

  status_code: 502,
  msg: 'failed to start tunnel',
  details: { err: 'session closed' }
@Nabute
Copy link

Nabute commented May 23, 2023

Any update on this?

{"error_code":103,"status_code":502,"msg":"failed to start tunnel","details":{"err":"session closed"}}

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

No branches or pull requests

2 participants