ipfs / ipfs/helia

IPNS resolve does not query delegated HTTP routers

Open
#925 0 comments 0 reactions 0 assignees View on GitHub
need/analysis P2
Dominant language
TypeScript
Stars
1.3k
Forks
159
Avg merge
2h 11m
Merged PRs (30d)
16

Description

# Environment
In our project we use IPNS-Over-Pubsub and maintain both kubo nodes and helia. We have rolled out a delegated http routers with support only for `/providers` since in kubo you don't need `/ipns` for IPNS provider query.

`ipnsPubsubTopicRoutingCid = CID.createV1(0x55, sha256("floodsub:" + ipnsPubsubTopic))`

## Expected behavior
- When resolving an IPNS name using a delegated routing client (without `/ipns` endpoints), the resolver should query `/routing/v1/providers/` to discover providers and dial them.
- The resolver should connect to the announced provider, join the IPNS pubsub topic

## Actual behavior
- IPNS resolve fails with `RecordNotFoundError`.
- No `/routing/v1/providers/*` requests are made (provider query count stays 0).
- The resolver never connects to the provider (`connections after resolve attempt: 0`).

## How to replicate
1. Clone https://github.com/Rinse12/delegated-routing-ipns-provider-repro
2. `npm install`
3. `npm run start`
4. Observe the logs

## Notes
- The repro spins up:
- A local delegated routing HTTP server that only serves `/routing/v1/providers/*`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.