Closed way-zer closed 3 years ago
Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review. In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment. Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:
Finally, remember to use https://discuss.ipfs.io if you just need general support.
fix after reinstall npm packages
Now it throw record requested for 12D3KooWNUXUJJGBHjNhXwpBEmSenD14ARepTtK6Q5g6X5Mkytn5 was not found in the network
when use dht.
After hack ipns/validator.select
, it works.
When use offline, it works.
selector be wrong when records.length == 1
no reply?
@way-zer is my understanding correct, that you've found a bug when records.length == 1
and were able to fix it?
DHT in js-ipfs is experimental and disabled by default, so this is a low priority for the team, but if you have a working fix, do you mind opening a PR for a review?
Without dht, how the IPNS works? I only see local store, pubsub and DHT. And pubsub is also experimental.
This was fixed in libp2p-record@0.10.6
, you should be able to reinstall and/or upgrade ipfs to get the fix.
Please re-open if you're still seeing problems.
Severity: High
Description:
When enable
libp2p.config.dht
, theipfs.name.resolve
fail. And throwError: found ipns record that we couldn't convert to a value
expected to workSteps to reproduce the error:
May be the problem
https://github.com/libp2p/js-libp2p-kad-dht/blob/ee3b374cd72ae529d8a512df6cbe1ac38ffd82b8/src/content-fetching/index.js#L107 dht convert to record when put, but not use
Record.deserialize
when get