Skip to content

Instantly share code, notes, and snippets.

@flazz
Created December 31, 2008 06:49
Show Gist options
  • Save flazz/41909 to your computer and use it in GitHub Desktop.
Save flazz/41909 to your computer and use it in GitHub Desktop.
%curl -i -X PUT -H 'Content-Type: image/jpeg' --data-binary - 'http://localhost:5984/test_suite_db//picard?rev=250044251' < ~/Desktop/picard-facepalm.jpg
%curl: (52) Empty reply from server
% log
[error] [<0.5584.0>] {error_report,<0.22.0>,
{<0.5584.0>,crash_report,
[[{pid,<0.5584.0>},
{registered_name,[]},
{error_info,
{error,
{case_clause,<<"-">>},
[{mochijson2,tokenize_number,4},
{mochijson2,tokenize_number,2},
{mochijson2,decode1,2},
{mochijson2,json_decode,2},
{couch_httpd_db,db_doc_req,3},
{couch_httpd_db,do_db_req,2},
{couch_httpd,handle_request,3},
{mochiweb_http,headers,4}]}},
{initial_call,
{mochiweb_socket_server,acceptor_loop,
[{<0.60.0>,#Port<0.151>,#Fun<mochiweb_http.1.62821608>}]}},
{ancestors,
[couch_httpd,couch_secondary_services,couch_server_sup,
<0.1.0>]},
{messages,[]},
{links,[<0.60.0>,#Port<0.1936>]},
{dictionary,
[{mochiweb_request_body,<<"-">>},
{mochiweb_request_recv,true}]},
{trap_exit,false},
{status,running},
{heap_size,2584},
{stack_size,23},
{reductions,1476}],
[]]}}
[error] [<0.60.0>] {error_report,<0.22.0>,
{<0.60.0>,std_error,
{mochiweb_socket_server,235,
{child_error,{case_clause,<<"-">>}}}}}
=ERROR REPORT==== 31-Dec-2008::01:52:42 ===
{mochiweb_socket_server,235,
{child_error,{case_clause,<<"-">>}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment