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

How to fix Ngrok Custom Subdomain Error when using a free, static domain #320

Open
hayata-suenaga opened this issue Mar 21, 2024 · 0 comments

Comments

@hayata-suenaga
Copy link

When you create a free, static domain on the Ngrok dashboard, you get a URL that resembles the one below:

https://<your-static-domain>.ngrok-free.app

I want to use this static domain when running an agent using the JavaScript SDK.

  const url = await ngrok.connect({
    addr: 5001,
    authtoken: process.env.NGROK_AUTHTOKEN,
    subdomain: your-static-domain,
  });

However, I encounter the following error when I attempt this:

failed to start tunnel: Custom subdomains are a feature on ngrok's paid plans.

How can I resolve this issue and use the free, static domain with the JavaScript SDK?

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

1 participant