kubo
kubo copied to clipboard
`ipfs routing get` should allow querying when node is offline by enabling a flag
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 getto allow querying the local node in offline mode
Thanks!
triage notes:
- sensible feature request
-
ipfs routing get --offlineshould would work if record is in local store -- if not, this is a bug - similar, running
ipfs daemon --offlineand then requestinghttp://127.0.0.1:8080/ipns/{ipns-name}?format=ipns-recordshould 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