{"action":"opened","issue":{"url":"https://api.github.com/repos/basho/riak-erlang-http-client/issues/53","labels_url":"https://api.github.com/repos/basho/riak-erlang-http-client/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/basho/riak-erlang-http-client/issues/53/comments","events_url":"https://api.github.com/repos/basho/riak-erlang-http-client/issues/53/events","html_url":"https://github.com/basho/riak-erlang-http-client/issues/53","id":91244252,"number":53,"title":"Webmachine error on GET for siblings","user":{"login":"dmitrizagidulin","id":947005,"avatar_url":"https://avatars.githubusercontent.com/u/947005?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitrizagidulin","html_url":"https://github.com/dmitrizagidulin","followers_url":"https://api.github.com/users/dmitrizagidulin/followers","following_url":"https://api.github.com/users/dmitrizagidulin/following{/other_user}","gists_url":"https://api.github.com/users/dmitrizagidulin/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitrizagidulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitrizagidulin/subscriptions","organizations_url":"https://api.github.com/users/dmitrizagidulin/orgs","repos_url":"https://api.github.com/users/dmitrizagidulin/repos","events_url":"https://api.github.com/users/dmitrizagidulin/events{/privacy}","received_events_url":"https://api.github.com/users/dmitrizagidulin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-26T13:00:02Z","updated_at":"2015-06-26T13:00:02Z","closed_at":null,"body":"Issuing a get to an object with two (binary blob) siblings results in error:\r\n```erlang\r\ncatch rhc:get(rhc:create(\"127.0.0.1\", 8098, \"riak\", []), <<\"user_data_cache\">>,list_to_binary(integer_to_list(447431762613))).\r\n{'EXIT',{{badmatch,[<<\"\\r\\n\">>]},\r\n         [{webmachine_multipart,make_part,1,\r\n                                [{file,\"src/webmachine_multipart.erl\"},\r\n                                 {line,102}]},\r\n          {webmachine_multipart,stream_form,3,\r\n                                [{file,\"src/webmachine_multipart.erl\"},\r\n                                 {line,77}]},\r\n          {webmachine_multipart,get_all_parts,2,\r\n                                [{file,\"src/webmachine_multipart.erl\"},\r\n                                 {line,58}]},\r\n          {rhc_obj,decode_siblings,2,\r\n                   [{file,\"src/rhc_obj.erl\"},{line,79}]},\r\n          {rhc_obj,make_riakc_obj,4,\r\n                   [{file,\"src/rhc_obj.erl\"},{line,43}]},\r\n          {rhc,get,4,[{file,\"src/rhc.erl\"},{line,178}]},\r\n          {erl_eval,do_apply,6,[{file,\"erl_eval.erl\"},{line,576}]},\r\n          {erl_eval,expr,5,[{file,\"erl_eval.erl\"},{line,360}]}]}}\r\n```\r\nTo reproduce:\r\n```erlang\r\nRO2 = riakc_obj:new(<<\"BUCKET\">>, <<\"KEY2\">>, <<\"SomeData\">>).\r\nRO3 = riakc_obj:new(<<\"BUCKET\">>, <<\"KEY2\">>, <<\"SomeMoreData\">>).\r\n\r\nrhc:put(rhc:create(\"127.0.0.1\", 8098, \"riak\", []), RO2).\r\nrhc:put(rhc:create(\"127.0.0.1\", 8098, \"riak\", []), RO3).\r\nrhc:get(rhc:create(\"127.0.0.1\", 8098, \"riak\", []), <<\"BUCKET\">>, <<\"KEY2\">>).\r\n```\r\nFor reference, here's what the object for the error above looks like, via curl:\r\n```\r\ncurl localhost:8098/riak/user_data_cache/447431762613 -H \"accept:multipart/mixed\" -v\r\n* About to connect() to localhost port 8098 (#0)\r\n*   Trying ::1...\r\n* Connection refused\r\n*   Trying 127.0.0.1...\r\n* connected\r\n* Connected to localhost (127.0.0.1) port 8098 (#0)\r\n> GET /riak/user_data_cache/447431762613 HTTP/1.1\r\n> User-Agent: curl/7.26.0\r\n> Host: localhost:8098\r\n> accept:multipart/mixed\r\n>\r\n* HTTP 1.1 or later with persistent connection, pipelining supported\r\n< HTTP/1.1 300 Multiple Choices\r\n< X-Riak-Vclock: a85hYGBgzGDKBVIc7N//6Yf2yq3OYEpkymNlKFvIeJ4vCwA=\r\n< Vary: Accept, Accept-Encoding\r\n< Server: MochiWeb/1.1 WebMachine/1.10.0 (never breaks eye contact)\r\n< Last-Modified: Fri, 26 Jun 2015 10:12:06 GMT\r\n< ETag: \"1YIAAqwL3zHEo8ze8qb1tc\"\r\n< Date: Fri, 26 Jun 2015 10:59:34 GMT\r\n< Content-Type: multipart/mixed; boundary=Qh1ip4nObAMmn9KcnHGVjhKgNBG\r\n< Content-Length: 759\r\n<\r\n\r\n--Qh1ip4nObAMmn9KcnHGVjhKgNBG\r\nContent-Type: application/octet-stream\r\nLink: </riak/user_data_cache>; rel=\"up\"\r\nEtag: 7IrjozbcMxYAjy6v7FWvv5\r\nLast-Modified: Fri, 26 Jun 2015 10:12:05 GMT�h\r\n  d\r\nshare_datab1h�n��-hhn���jjjn���jd       undefinedd      undefinedd      undefined\r\n--Qh1ip4nObAMmn9KcnHGVjhKgNBG\r\nContent-Type: application/octet-stream\r\nLink: </riak/user_data_cache>; rel=\"up\"\r\nEtag: Z7IKoboZTrL5CYzTo2XqC\r\nLast-Modified: Fri, 26 Jun 2015 10:12:06 GMT\r\n�h\r\n  d\r\nshare_datab1h�n��-hhn���jlhh\r\n                            d\r\nAFUP_100MB_HSd  undefinedk\r\n                          63602536325dvirtualk2hhb�aa\r\n                                                     haaahhb�aa\r\n                                                               haaa$d   undefinedn��-hn��-hHS_100MBn���jjn���jd undefinedd      undefinedd      undefined\r\n--Qh1ip4nObAMmn9KcnHGVjhKgNBG--\r\n* Connection #0 to host localhost left intact\r\n* Closing connection #0\r\n```"}}