Skip to main content

Temporal token is bound to reserved addresses, specify one of them

FATA[12:00:00] Failed to get connection settings: Temporal token is bound to reserved addresses, specify one of them
Code: Forbidden
Request ID: c03f8e6a1d9b42e75a0c3d8f6e1b9a24

Variants of the message:

Temporal token is not bound to this address
Temporal token bound to addresses cannot be used for apps

tuna CLI and Tuna Desktop show this error when you start a tunnel. The client doesn't reconnect and exits right away.

Cause​

The tunnel was started with a key bound to specific domains or TCP ports. Such a key can start tunnels only on those addresses:

  • Temporal token is bound to reserved addresses, specify one of them means no address was given: an HTTP tunnel has no --subdomain or --domain, a TCP tunnel has no --port;
  • Temporal token is not bound to this address means the address isn't bound to the key or doesn't exist;
  • Temporal token bound to addresses cannot be used for apps means a bound key can't start a tunnel for an App.

Keys get bound in three cases: temporal tokens from Terraform with the domains and endpoints parameters, API keys created with address bindings, and background service keys installed with --subdomain, --domain or --port.

What to do​

  1. Find out which addresses the key is bound to: for a temporal token from Terraform, these are domains and endpoints; for a background service key, it's the address from the service command.

  2. Specify one of them when you start the tunnel:

    tuna http 8080 --subdomain=myapp-preview

    For a TCP tunnel, pass --port with the alias or number of the bound port.

  3. If you need a different address or a tunnel without one, issue a key without bindings or with the addresses you need.

  4. For an App, use a key that isn't bound to addresses.