Skip to content
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

@lidel

Description

@lidel

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 and ipfs.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)
  • 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)

Metadata

Metadata

Assignees

Labels

P1High: Likely tackled by core team if no one steps upexp/expertHaving worked on the specific codebase is importanthelp wantedSeeking public contribution on this issuestatus/in-progressIn progress

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions