{"record":{"id":"c49eba99755a3fac","repo":"ipfs/kubo","slug":"registering-http-delegated-routing-views-w","errorCode":null,"errorMessage":"registering HTTP delegated routing views: %w","messagePattern":"registering HTTP delegated routing views: %w","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"routing/delegated.go","lineNumber":285,"sourceCode":"\t\tproviderInfoOpt,\n\t\tdrclient.WithUserAgent(version.GetUserAgentVersion()),\n\t\tdrclient.WithProtocolFilter(protocols),\n\t\tdrclient.WithStreamResultsRequired(),       // https://specs.ipfs.tech/routing/http-routing-v1/#streaming\n\t\tdrclient.WithDisabledLocalFiltering(false), // force local filtering in case remote server does not support IPIP-484\n\t)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tcr := contentrouter.NewContentRoutingClient(\n\t\tcli,\n\t\tcontentrouter.WithMaxProvideBatchSize(params.MaxProvideBatchSize),\n\t\tcontentrouter.WithMaxProvideConcurrency(params.MaxProvideConcurrency),\n\t)\n\n\terr = view.Register(drclient.OpenCensusViews...)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"registering HTTP delegated routing views: %w\", err)\n\t}\n\n\treturn &httpRoutingWrapper{\n\t\tContentRouting:    cr,\n\t\tPeerRouting:       cr,\n\t\tValueStore:        cr,\n\t\tProvideManyRouter: cr,\n\t}, nil\n}\n\nfunc decodePrivKey(keyB64 string) (ic.PrivKey, error) {\n\tpk, err := base64.StdEncoding.DecodeString(keyB64)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn ic.UnmarshalPrivateKey(pk)\n}","sourceCodeStart":267,"sourceCodeEnd":303,"githubUrl":"https://github.com/ipfs/kubo/blob/329838acdfafae224582930457efe80aa217afc0/routing/delegated.go#L267-L303","documentation":"While constructing an HTTP delegated router from config, registering the client's routing views on the fx lifecycle (view.Register) failed; the wrapped error carries the underlying cause. This happens during node startup when a delegated router cannot be set up.","triggerScenarios":"Thrown at routing/delegated.go:285 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the wrapped error for the root cause","Verify the delegated router endpoint URL is reachable and speaks the HTTP Routing V1 spec","Retry startup after fixing connectivity or the endpoint config"],"exampleFix":null,"handlingStrategy":"retry","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"}