I am using js-ipfs and I am unable to publish any file. I am getting this error : " Error: ipns record for L2lwbnMvEiBGESEAHOyUp2PA3lxue7uiwDAPxbe7Z8R0gTI5shOe1g== could not be stored in the routing".
My package.json:
“dependencies”: {
“@babel/runtime”: “^7.8.7”,
“cookie-parser”: “~1.4.4”,
“dat-sdk”: “^1.0.3”,
“debug”: “~2.6.9”,
“express”: “~4.16.1”,
“http-errors”: “~1.6.3”,
“ipfs”: “^0.41.2”,
“it-all”: “^1.0.1”,
“moment”: “^2.24.0”,
“morgan”: “~1.9.1”,
“pug”: “^2.0.4”,
“pull-stream”: “^3.6.14”,
“readline-sync”: “^1.4.10”
},
I am using the following configuration when creating a node :
{
EXPERIMENTAL: { ipnsPubsub: true },
libp2p: { config: { dht: [Object] } },
silent: true
}
And this code to create a test file and publish it:
let filesAdded = this.AddFile('hello2.txt','hello world!').then(function (file) {
console.log('Added file:', file,)
try {
let value = file.cid.toString();
self.node.name.publish(value);
}
catch (e) {
console.log('name publish error:',e.toString());
}
});
I tested with classic CLI IPFS and it works good.
Any tips? Thank you.