This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
Resolving DNSLink Paths: /ipns/<fqdn> #1918
Description
Part of an effort to run embedded js-ipfs in Brave 🦁 ipfs/ipfs-companion#716
- Version: js-ipfs v0.34
- Platform: browser
- Subsystem:
ipfs.resolve
andipfs.name.resolve
Type: Bug
Severity: Medium
Description:
js-ipfs v0.34 supports /ipns/<peerid>
, but trying to resolve /ipns/<fqdn>
produces errors (the error is different for each method).
Calling ipfs.dns('docs.ipfs.io').then(console.log)
resolves DNSLink correctly, so I assume all pieces are in place and this is just a bug/missing some wiring – is this correct?
Is this on someones TODO or is it up for grabs?
Steps to reproduce the error:
-
ipfs.resolve('/ipns/docs.ipfs.io/assets/logo.svg', {recursive: true})
- go-ipfs returns
/ipfs/QmY7Yh4UquoXHLPFo2XbhXkhBvFoPwmQUSa92pxnxjQuPU
- js-ipfs throws
Error: resolve non-IPFS names is not implemented
(from this line)
- go-ipfs returns
-
ipfs.name.resolve('/ipns/docs.ipfs.io/assets/logo.svg', {recursive: true})
- go-ipfs returns
/ipfs/QmYz85ubdabSrraMnodhMMosiHv9WURJASEC5D6ojTgm4X/assets/logo.svg
- js-ipfs throws
Error: Non-base58 character
(from this line)
- go-ipfs returns