Skip to content

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

Description

@hayata-suenaga

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?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions