Skip to main content

tunnel is reconnecting

A request to the tunnel gets a short plain-text response:

tunnel is reconnecting

The HTTP status of the response is 503, with the Retry-After: 5 header: retry the request in 5 seconds. A similar response appears when the Tuna node the tunnel is connected to restarts:

node is starting

It also has the 503 status, but with Retry-After: 1.

Causeโ€‹

tunnel is reconnecting means the tuna client has just lost its connection to the server and is reconnecting. The server holds the tunnel address for about a minute and responds this way so that webhook senders retry the request: most of them don't retry on 4xx responses. If the client doesn't come back within a minute, the address starts showing the Tunnel is offline or Tunnel not found page.

node is starting means the Tuna node is restarting and hasn't loaded its list of tunnels yet. This usually takes seconds.

What to doโ€‹

  1. Wait a minute and retry the request.
  2. If the response shows up often, check the tuna CLI output: it shows why the connection drops โ€” for example, connection lost, reconnecting or keepalive timeout.
  3. If your own code sends requests to the tunnel, retry them on a 503 status, respecting the Retry-After header.

If the tunnel isn't yours, refresh the page in a few seconds.