Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 8th, 2012  |  syntax: None  |  size: 0.81 KB  |  hits: 4  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #> curl -X PUT http://localhost:8098/riak/test/asdf -H "content-type: application/json" -d "{\"foo\":\"bar\"}"
  2. <html><head><title>500 Internal Server Error</title></head><body><h1>Internal Server Error</h1>The server encountered an error while processing this request:<br><pre>{error,{error,badarg,
  3.               [{erlang,iolist_to_binary,[{error,missing_field,<<"foo">>}]},
  4.                {wrq,append_to_response_body,2},
  5.                {riak_kv_wm_raw,accept_doc_body,2},
  6.                {webmachine_resource,resource_call,3},
  7.                {webmachine_resource,do,3},
  8.                {webmachine_decision_core,resource_call,1},
  9.                {webmachine_decision_core,accept_helper,0},
  10.                {webmachine_decision_core,decision,1}]}}</pre><P><HR><ADDRESS>mochiweb+webmachine web server</ADDRESS></body></html>