kubo icon indicating copy to clipboard operation
kubo copied to clipboard

`ipfs routing get` should allow querying when node is offline by enabling a flag

Open Rinse12 opened this issue 4 months ago • 1 comments

Checklist

  • [x] My issue is specific & actionable.
  • [x] I am not suggesting a protocol enhancement.
  • [x] I have searched on the issue tracker for my issue.

Description

In our use case we'd like to load the raw IPNS record from our local kubo node with all of its props like ttl, sequence etc, and the only way to query it from the local node atm is through ipfs routing get.

The problem is routing automatically throws if our node is on offline mode. Can you either:

  • Suggest a different way of getting the raw IPNS record from our local node
  • Add a flag in routing get to allow querying the local node in offline mode

Thanks!

Rinse12 avatar Sep 07 '25 09:09 Rinse12

triage notes:

  • sensible feature request
    • ipfs routing get --offline should would work if record is in local store -- if not, this is a bug
    • similar, running ipfs daemon --offline and then requesting http://127.0.0.1:8080/ipns/{ipns-name}?format=ipns-record should work if record is in local store
  • may be easier to implement after 0.37 since it supports ipfs name publish --allow-offline ("write"), this seems to be "read" version of that

lidel avatar Sep 09 '25 14:09 lidel