gravitational/teleport · error

Internal Server Error

Error message

Internal Server Error

What it means

dumperHandler (a debugging app that dumps request headers) writes the standard 'Internal Server Error' text when httputil.DumpRequest fails, i.e. the incoming request could not be serialized for dumping.

Source

Thrown at lib/service/service.go:7722

		return &addr, true
	}

	if len(process.Config.Proxy.TunnelPublicAddrs) == 0 {
		addr, err := utils.ParseHostPortAddr(string(teleport.PrincipalLocalhost), defaults.SSHProxyTunnelListenPort)
		if err != nil {
			return nil, false
		}
		return addr, true
	}
	return &process.Config.Proxy.TunnelPublicAddrs[0], true
}

// dumperHandler is an Application Access debugging application that will
// dump the headers of a request.
func dumperHandler(w http.ResponseWriter, r *http.Request) {
	requestDump, err := httputil.DumpRequest(r, true)
	if err != nil {
		http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
		return
	}

	randomBytes := make([]byte, 8)
	rand.Reader.Read(randomBytes)
	cookieValue := hex.EncodeToString(randomBytes)

	http.SetCookie(w, &http.Cookie{
		Name:     "dumper.session.cookie",
		Value:    cookieValue,
		SameSite: http.SameSiteLaxMode,
	})

	w.Header().Set("Content-Type", "text/plain; charset=utf-8")
	fmt.Fprint(w, string(requestDump))
}

// getPublicAddr waits for a proxy to be registered with Teleport. For a scoped

View on GitHub (pinned to 1283425b60)

Solutions

  1. Retry the request with a well-formed HTTP request
  2. Inspect the Teleport proxy logs for the DumpRequest failure cause
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at lib/service/service.go:7722 when the library encounters an invalid state.

Common situations: See trigger scenarios.

Understand the failure class


AI-assisted analysis of gravitational/teleport@1283425b60 (2026-09-02). Data as JSON: /api/errors/6a650529e5654136. Report an issue: GitHub.