{"action":"created","issue":{"url":"https://api.github.com/repos/ipfs/go-ipfs/issues/2807","repository_url":"https://api.github.com/repos/ipfs/go-ipfs","labels_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/2807/labels{/name}","comments_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/2807/comments","events_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/2807/events","html_url":"https://github.com/ipfs/go-ipfs/issues/2807","id":158551181,"number":2807,"title":"ipfs get $hashofblock gives confusing error message","user":{"login":"jonnor","id":45185,"avatar_url":"https://avatars.githubusercontent.com/u/45185?v=3","gravatar_id":"","url":"https://api.github.com/users/jonnor","html_url":"https://github.com/jonnor","followers_url":"https://api.github.com/users/jonnor/followers","following_url":"https://api.github.com/users/jonnor/following{/other_user}","gists_url":"https://api.github.com/users/jonnor/gists{/gist_id}","starred_url":"https://api.github.com/users/jonnor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonnor/subscriptions","organizations_url":"https://api.github.com/users/jonnor/orgs","repos_url":"https://api.github.com/users/jonnor/repos","events_url":"https://api.github.com/users/jonnor/events{/privacy}","received_events_url":"https://api.github.com/users/jonnor/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ipfs/go-ipfs/labels/difficulty:easy","name":"difficulty:easy","color":"bfe5bf"},{"url":"https://api.github.com/repos/ipfs/go-ipfs/labels/documentation","name":"documentation","color":"fef2c0"},{"url":"https://api.github.com/repos/ipfs/go-ipfs/labels/enhancement","name":"enhancement","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"whyrusleeping","id":1243164,"avatar_url":"https://avatars.githubusercontent.com/u/1243164?v=3","gravatar_id":"","url":"https://api.github.com/users/whyrusleeping","html_url":"https://github.com/whyrusleeping","followers_url":"https://api.github.com/users/whyrusleeping/followers","following_url":"https://api.github.com/users/whyrusleeping/following{/other_user}","gists_url":"https://api.github.com/users/whyrusleeping/gists{/gist_id}","starred_url":"https://api.github.com/users/whyrusleeping/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whyrusleeping/subscriptions","organizations_url":"https://api.github.com/users/whyrusleeping/orgs","repos_url":"https://api.github.com/users/whyrusleeping/repos","events_url":"https://api.github.com/users/whyrusleeping/events{/privacy}","received_events_url":"https://api.github.com/users/whyrusleeping/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/ipfs/go-ipfs/milestones/13","html_url":"https://github.com/ipfs/go-ipfs/milestones/Ipfs%200.4.3","labels_url":"https://api.github.com/repos/ipfs/go-ipfs/milestones/13/labels","id":1839844,"number":13,"title":"Ipfs 0.4.3","description":"","creator":{"login":"whyrusleeping","id":1243164,"avatar_url":"https://avatars.githubusercontent.com/u/1243164?v=3","gravatar_id":"","url":"https://api.github.com/users/whyrusleeping","html_url":"https://github.com/whyrusleeping","followers_url":"https://api.github.com/users/whyrusleeping/followers","following_url":"https://api.github.com/users/whyrusleeping/following{/other_user}","gists_url":"https://api.github.com/users/whyrusleeping/gists{/gist_id}","starred_url":"https://api.github.com/users/whyrusleeping/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whyrusleeping/subscriptions","organizations_url":"https://api.github.com/users/whyrusleeping/orgs","repos_url":"https://api.github.com/users/whyrusleeping/repos","events_url":"https://api.github.com/users/whyrusleeping/events{/privacy}","received_events_url":"https://api.github.com/users/whyrusleeping/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":8,"state":"open","created_at":"2016-06-21T06:31:46Z","updated_at":"2016-06-22T04:09:46Z","due_on":"2016-07-07T07:00:00Z","closed_at":null},"comments":10,"created_at":"2016-06-05T12:02:39Z","updated_at":"2016-06-22T12:48:59Z","closed_at":null,"body":"When the hash referred is a block, one cannot use `ipfs get` (as it expects a file object) - but instead have to use `ipfs block get`. This is fine, but the error message when attempting is not very helpful in understanding this:\r\n```\r\n$ ipfs get QmSnWHYwDUE1gdcUb6ZYgU2khZ5FkxuWsTvXbw3zGsKc3x\r\nError: Failed to decode Protocol Buffers: incorrectly formatted merkledag node: Unmarshal failed. proto: illegal wireType 6\r\n\r\n$ ipfs block get QmSnWHYwDUE1gdcUb6ZYgU2khZ5FkxuWsTvXbw3zGsKc3x\r\n�ripld-image-version\u0001htilesize�ax\u0019\u0001ay\u0019\u0001etiles�ax\u0004ay\u0003flevel0��fformatcpngdsize�ax\u0019\u0001ay\u0019\u0001ddata�\u0001\u0002\r\n......\r\n````\r\nExpected 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.\r\n\r\nPing @Kubuxu "},"comment":{"url":"https://api.github.com/repos/ipfs/go-ipfs/issues/comments/227732434","html_url":"https://github.com/ipfs/go-ipfs/issues/2807#issuecomment-227732434","issue_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/2807","id":227732434,"user":{"login":"Kubuxu","id":2259282,"avatar_url":"https://avatars.githubusercontent.com/u/2259282?v=3","gravatar_id":"","url":"https://api.github.com/users/Kubuxu","html_url":"https://github.com/Kubuxu","followers_url":"https://api.github.com/users/Kubuxu/followers","following_url":"https://api.github.com/users/Kubuxu/following{/other_user}","gists_url":"https://api.github.com/users/Kubuxu/gists{/gist_id}","starred_url":"https://api.github.com/users/Kubuxu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kubuxu/subscriptions","organizations_url":"https://api.github.com/users/Kubuxu/orgs","repos_url":"https://api.github.com/users/Kubuxu/repos","events_url":"https://api.github.com/users/Kubuxu/events{/privacy}","received_events_url":"https://api.github.com/users/Kubuxu/received_events","type":"User","site_admin":false},"created_at":"2016-06-22T12:48:58Z","updated_at":"2016-06-22T12:48:58Z","body":"No `ipfs object` manipulates MerkleDags. `ipfs block` is for binary data not interpreted by IPFS in any way."}}
{"actor":{"display_login":"Kubuxu"}}