# Unable to publish any file with IPNS

**URL:** <https://discuss.ipfs.tech/t/unable-to-publish-any-file-with-ipns/7469>\
**Category:** js-ipfs\
**Tags:** ipns\
**Created:** [March 13, 2020, 6:38pm UTC](https://discuss.ipfs.tech/t/unable-to-publish-any-file-with-ipns/7469 "2020-03-13T18:38:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chelneru](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/chelneru/32/6061_2.png) [@chelneru](https://discuss.ipfs.tech/u/chelneru)\
**Post date:** [March 13, 2020, 6:38pm UTC](https://discuss.ipfs.tech/t/unable-to-publish-any-file-with-ipns/7469/1 "2020-03-13T18:38:35Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![HimanshGupta10](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/himanshgupta10/32/6059_2.png) [@HimanshGupta10](https://discuss.ipfs.tech/u/HimanshGupta10)\
**Post date:** [February 22, 2022, 6:31pm UTC](https://discuss.ipfs.tech/t/unable-to-publish-any-file-with-ipns/7469/2 "2022-02-22T18:31:58Z")

</div>

Have you got any solution to this?  
if yes, can you please be share. Stuck on this for quite some time now
