{"record":{"id":"b1bbcc8590270d89","repo":"caddyserver/caddy","slug":"provisioning-response-handler-d-v","errorCode":null,"errorMessage":"provisioning response handler %d: %v","messagePattern":"provisioning response handler (.+?): (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"modules/caddyhttp/reverseproxy/reverseproxy.go","lineNumber":430,"sourceCode":"\n\t\t// if active health checks are enabled, configure them and start a worker\n\t\tif h.HealthChecks.Active != nil {\n\t\t\terr := h.HealthChecks.Active.Provision(ctx, h)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\tif h.HealthChecks.Active.IsEnabled() {\n\t\t\t\tgo h.activeHealthChecker()\n\t\t\t}\n\t\t}\n\t}\n\n\t// set up any response routes\n\tfor i, rh := range h.HandleResponse {\n\t\terr := rh.Provision(ctx)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"provisioning response handler %d: %v\", i, err)\n\t\t}\n\t}\n\n\tupstreamHealthyUpdater := newMetricsUpstreamsHealthyUpdater(h, ctx)\n\tupstreamHealthyUpdater.init()\n\n\treturn nil\n}\n\n// Cleanup cleans up the resources made by h.\nfunc (h *Handler) Cleanup() error {\n\terr := h.cleanupConnections()\n\n\t// remove hosts from our config from the pool\n\tfor _, upstream := range h.Upstreams {\n\t\t_, _ = hosts.Delete(upstream.String())\n\t}\n","sourceCodeStart":412,"sourceCodeEnd":448,"githubUrl":"https://github.com/caddyserver/caddy/blob/50e54ee279aa1e504fe218ca49ab6ae16c100410/modules/caddyhttp/reverseproxy/reverseproxy.go#L412-L448","documentation":"Error \"provisioning response handler %d: %v\" thrown in caddyserver/caddy.","triggerScenarios":"Thrown at modules/caddyhttp/reverseproxy/reverseproxy.go:430 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the handle_response route configuration in reverse_proxy; the wrapped error identifies the failing handler."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"50e54ee279aa1e504fe218ca49ab6ae16c100410","analyzedAt":"2026-08-15T09:20:21.641Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}