{"record":{"id":"6a650529e5654136","repo":"gravitational/teleport","slug":"internal-server-error-6a6505","errorCode":null,"errorMessage":"Internal Server Error","messagePattern":"Internal Server Error","errorType":"http","errorClass":null,"httpStatus":500,"severity":"error","filePath":"lib/service/service.go","lineNumber":7722,"sourceCode":"\t\treturn &addr, true\n\t}\n\n\tif len(process.Config.Proxy.TunnelPublicAddrs) == 0 {\n\t\taddr, err := utils.ParseHostPortAddr(string(teleport.PrincipalLocalhost), defaults.SSHProxyTunnelListenPort)\n\t\tif err != nil {\n\t\t\treturn nil, false\n\t\t}\n\t\treturn addr, true\n\t}\n\treturn &process.Config.Proxy.TunnelPublicAddrs[0], true\n}\n\n// dumperHandler is an Application Access debugging application that will\n// dump the headers of a request.\nfunc dumperHandler(w http.ResponseWriter, r *http.Request) {\n\trequestDump, err := httputil.DumpRequest(r, true)\n\tif err != nil {\n\t\thttp.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)\n\t\treturn\n\t}\n\n\trandomBytes := make([]byte, 8)\n\trand.Reader.Read(randomBytes)\n\tcookieValue := hex.EncodeToString(randomBytes)\n\n\thttp.SetCookie(w, &http.Cookie{\n\t\tName:     \"dumper.session.cookie\",\n\t\tValue:    cookieValue,\n\t\tSameSite: http.SameSiteLaxMode,\n\t})\n\n\tw.Header().Set(\"Content-Type\", \"text/plain; charset=utf-8\")\n\tfmt.Fprint(w, string(requestDump))\n}\n\n// getPublicAddr waits for a proxy to be registered with Teleport. For a scoped","sourceCodeStart":7704,"sourceCodeEnd":7740,"githubUrl":"https://github.com/gravitational/teleport/blob/1283425b60ec5f60d509ba4c791183d452923ff7/lib/service/service.go#L7704-L7740","documentation":"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.","triggerScenarios":"Thrown at lib/service/service.go:7722 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the request with a well-formed HTTP request","Inspect the Teleport proxy logs for the DumpRequest failure cause"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"1283425b60ec5f60d509ba4c791183d452923ff7","analyzedAt":"2026-09-02T04:06:41.601Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}