I recently switched from 0.12 to the latest and greatest from github and I'm running into an HTTP 330 error when I attempt to read from a bucket. I uploaded this picture <http://imgur.com/KUpdk> using `curl -X PUT HTTP://127.0.0.1:8091/riak/images/1.jpg -H "Content-type: image/jpeg" --data-binary @nixon.jpg`
when I go to view the image, I get "Error 330 (net::ERR_CONTENT_DECODING_FAILED): Unknown error." When I use `riak attach` to take a look at what's going on, I can see that the image is in there: (d...@127.0.0.1)5> C:get(<<"images">>, <<"1.jpg">>, 1). {ok,{r_object,<<"images">>,<<"1.jpg">>, [{r_content,{dict,5,16,16,8,80,48, {[],[],[],[],[],[],[],[],[],[],[],[],...}, {{[],[], [[<<"Links">>]], [],[], [[<<"X-Riak-T"...>>,49,75|...]], [],[],[],[],...}}}, <<255,216,255,224,0,16,74,70,73,70,0,1,2,1,0,72,0, 72,0,...>>}], [{<<5,249,52,160>>,{1,63458817684}}, {<<131,98,5,150,94,114>>,{1,63458818215}}, {<<5,248,163,2>>,{1,63458818215}}, {<<4,211,21,247>>,{1,63458818516}}, {<<131,98,7,237,200,144>>,{1,63458818532}}, {<<131,98,4,225,148,161>>,{1,63458818532}}, {<<131,98,0,18,233,187>>,{1,63458818532}}, {<<5,113,110,142>>,{1,63458819383}}, {<<131,98,5,43,155,126>>,{1,63458819383}}], {dict,1,16,16,8,80,48, {[],[],[],[],[],[],[],[],[],[],[],[],[],...}, {{[],[],[],[],[],[],[],[],[],[],[],...}}}, undefined}} However, I end up with this error streaming across the console: =ERROR REPORT==== 5-Dec-2010::21:04:25 === webmachine error: path="/riak/images/1.jpg" [{webmachine_util,escape_quotes, [{error, {error,badarg, [{dict,fetch, [<<"X-Riak-VTag">>, {dict,5,16,16,8,80,48, {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}, {{[],[], [[<<"Links">>]], [],[], [[<<"X-Riak-Tag">>,49,75,109,90,107,122,79,79,120, 86,102,56,75,110,53,68,80,82,68,70,101,49]], [],[],[],[], [[<<"content-type">>,105,109,97,103,101,47,106,112, 101,103]], [],[], [[<<"X-Riak-Last-Modified">>|{1291,600183,525348}]], [], [[<<"X-Riak-Meta">>]]}}}]}, {riak_kv_wm_raw,generate_etag,2}, {webmachine_resource,resource_call,3}, {webmachine_resource,do,3}, {webmachine_decision_core,resource_call,1}, {webmachine_decision_core,decision,1}, {webmachine_decision_core,handle_request,2}, {webmachine_mochiweb,loop,1}]}}, "\""]}, {webmachine_decision_core,decision,1}, {webmachine_decision_core,handle_request,2}, {webmachine_mochiweb,loop,1}, {mochiweb_http,headers,5}, {proc_lib,init_p_do_apply,3}] Jeremiah Peschka Microsoft SQL Server MVP MCITP: Database Developer, DBA
_______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com