-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Valid IPNS records fail to resolve #395
Comments
This has been fixed for me after #396 I can't see the linked repo (wrong team?) but this is mine: import { CID } from 'multiformats'
import { createHeliaHTTP } from '@helia/http'
import { json } from '@helia/json'
import { trustlessGateway } from '@helia/block-brokers'
import { ipns } from '@helia/ipns'
import { peerIdFromString } from '@libp2p/peer-id'
import { delegatedHTTPRouting } from '@helia/routers'
const ipnsName = `k51qzi5uqu5di4qhp7oa8qcwmlt94dyd68it5dn60lmwbg4by0s24l3by9sene`
const helia = await createHeliaHTTP({
blockBrokers: [
trustlessGateway({
gateways: ['https://cloudflare-ipfs.com', 'https://ipfs.io'],
}),
],
routers: [delegatedHTTPRouting('https://delegated-ipfs.dev')],
})
const name = ipns(helia)
const peerId = peerIdFromString(ipnsName)
console.info('ipns', await ipns.resolve(peerId)) {
"type": "module",
"dependencies": {
"@helia/block-brokers": "next",
"@helia/http": "next",
"@helia/ipns": "next",
"@helia/json": "next",
"@helia/unixfs": "next",
"@libp2p/peer-id": "^4.0.3",
"multiformats": "^13.0.0"
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using the canary tag of the
@helia/http
, trying to resolve the following IPNS recordk51qzi5uqu5di4qhp7oa8qcwmlt94dyd68it5dn60lmwbg4by0s24l3by9sene
, results in the following error:Reproduction:
The text was updated successfully, but these errors were encountered: