-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
ipfs get $hashofblock gives confusing error message #2807
Comments
All files are blocks, in this case the block just doesn't contain unixfs format. It should be more of: "Requested hash isn't recognised unix file encoding format" or something similar. |
It looks like the block you requested is not a merkledag object. We should fix the error messages, and increase documentation around the layers of data involved here. raw blocks, merkledag protobufs, and then unixfs protobufs |
It is the kind of "block" one gets with |
@jonnor would the following look good to you?
|
Not a |
@jonnor well, everything is technically a block. The cause of the error is that its not a merkledag node. You can do a |
If everything is a block, then why isn't |
@RichardLitt because |
Should this be 'raw IPFS MerkleDag blocks`, maybe? |
No |
All files built from objects, and all objects built from blocks. |
@jonnor how about "The block referred to by was not a valid merkledag node" ? |
When the hash referred is a block, one cannot use
ipfs get
(as it expects a file object) - but instead have to useipfs block get
. This is fine, but the error message when attempting is not very helpful in understanding this:Expected would be something like "Requested hash $hash refers to a block, not an object. Use ipfs block get instead". Possibly with the detailed error message above following it.
Ping @Kubuxu
The text was updated successfully, but these errors were encountered: