-
Notifications
You must be signed in to change notification settings - Fork 297
files.add to object.get to object.put: unexpected EOF #368
Comments
See #370 (comment). The gist is, you need to put valid DAG objects in if you are using |
@dignifiedquire So, as I see it, @nycoliver is adding a file from an url, gets the hash from the results and does |
@victorbjelkholm yes you are right, I misread the code and thought the It seems this doesn't work on the cli either, so this should be moved to go-ipfs. $ ipfs add myfile.txt
<hash>
$ ipfs object get <hash> | ipfs object put
<hash2> Opening the browser at |
This seems more like a error in |
I got I've noticed that this seems to be a problem when an object has links. First inclination is that there is some encoding problem with object get. On
Think I have narrowed this down to a bug with the seeker implementation in go-ipfs. I am able to successfully add -> get -> put as long as the dagNode doesn't have links to seek. |
Yeah, the fact that |
i altered the data field in
and piped |
I didn't dig into this in detail, but my spider-sense made me think ipfs/kubo#1582 might be relevant -- especially if base64 encoding does work but json doesn't. |
Shouldn't this be moved to go-ipfs issues? |
@nycoliver agreed, looks like it is tracked on ipfs/kubo#1582, closing this one |
ipfs.add an file, ipfs.object.get the hash, then ipfs.object.put the object. When I try to cat the object I see
unexpected EOF
. Am I doing something wrong?The text was updated successfully, but these errors were encountered: