{"record":{"id":"15f5e2a80c9f61ba","repo":"ipfs/kubo","slug":"config-for-router-with-name-q-not-found","errorCode":null,"errorMessage":"config for router with name %q not found","messagePattern":"config for router with name %q not found","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"routing/delegated.go","lineNumber":115,"sourceCode":"\textraHTTP *ExtraHTTPParams,\n) (routing.Routing, error) {\n\t// check if we already created it\n\tr, ok := createdRouters[routerName]\n\tif ok {\n\t\treturn r, nil\n\t}\n\n\t// check if we are in a dep loop\n\tif visited[routerName] {\n\t\treturn nil, fmt.Errorf(\"dependency loop creating router with name %q\", routerName)\n\t}\n\n\t// set node as visited\n\tvisited[routerName] = true\n\n\tcfg, ok := routersCfg[routerName]\n\tif !ok {\n\t\treturn nil, fmt.Errorf(\"config for router with name %q not found\", routerName)\n\t}\n\n\tvar router routing.Routing\n\tvar err error\n\tswitch cfg.Type {\n\tcase config.RouterTypeHTTP:\n\t\trouter, err = httpRoutingFromConfig(cfg.Router, extraHTTP)\n\tcase config.RouterTypeDHT:\n\t\trouter, err = dhtRoutingFromConfig(cfg.Router, extraDHT)\n\tcase config.RouterTypeParallel:\n\t\tcrp := cfg.Parameters.(*config.ComposableRouterParams)\n\t\tvar pr []*routinghelpers.ParallelRouter\n\t\tfor _, cr := range crp.Routers {\n\t\t\tri, err := parse(visited, createdRouters, cr.RouterName, routersCfg, extraDHT, extraHTTP)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n","sourceCodeStart":97,"sourceCodeEnd":133,"githubUrl":"https://github.com/ipfs/kubo/blob/329838acdfafae224582930457efe80aa217afc0/routing/delegated.go#L97-L133","documentation":"The routing config references a router by name (in Routing.DelegatedRouters or another router's Refs/SubRouters) that has no definition in the Routers section; the named router config is simply missing.","triggerScenarios":"Thrown at routing/delegated.go:115 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add a Routers.<name> entry with Type and Parameters for the referenced name","Or fix the typo in the reference so it points at an existing router","Reference: docs/config.md Routers section"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"329838acdfafae224582930457efe80aa217afc0","analyzedAt":"2026-09-03T18:30:52.135Z","contentChangedAt":"2026-09-03T18:30:52.135Z","schemaVersion":2},"datasetVersion":"2026-09-11T00:17:11.886Z"}