Skip to content

Instantly share code, notes, and snippets.

@jackdesert
Created March 24, 2015 20:44
Show Gist options
  • Save jackdesert/61d77ef4fbe45fad37f2 to your computer and use it in GitHub Desktop.
Save jackdesert/61d77ef4fbe45fad37f2 to your computer and use it in GitHub Desktop.
riak 1.4 stack trace
[" dictionary: [{reqstate,{wm_reqstate,{ssl,{sslsocket,new_ssl,<0.9876.5034>}},[{'content-encoding','identity'},{'content-type','application/json'},{mediaparams,[]},{resource_module,riak_kv_wm_object}],undefined,undefined,'54.158.216.244',{wm_reqdata,'POST',https,{1,1},'54.158.216.244','54.158.216.244',undefined,'4JHotrGIRVv3bi1fdaOHcVbwPD','/buckets/samples_instances_responses/keys','/buckets\n /samples_instances_responses/keys?returnbody=true',[{bucket,'samples_instances_responses'}],[],'../../..',{500,undefined},1073741824,67108864,[],[{'returnbody','true'}],{10,{'user-agent',{'User-Agent','Ruby'},{'content-length',{'Content-Length','258732'},{'connection',{'Connection','keep-alive'},{'accept',{'Accept','multipart/mixed, application/json;q=0.7, */\n *;q=0.5'},nil,nil},nil},{'host',{'Host','reporting-provider.p.cloudability.org:8080'},{'content-type',{'Content-Type','application/json'},nil,nil},nil}},{'x-forwarded-proto',{'X-Forwarded-Proto','https'},{'x-forwarded-port',{'X-Forwarded-Port','8080'},{'x-forwarded-for',{'X-Forwarded-For','54.158.216.244'},nil,nil},nil},{'x-riak-clientid',{'X-Riak-Clientid','dtjGTw=='},nil,nil}}}},not_fetched_yet,false,{3,{'content-type',{'Content-Type','text/html'},nil,{'vary',{'Vary','Accept-Encoding'},{'location',{'Location',[47,98,117,99,107,101,116,115,47,'samples_instances_responses',47,107,101,121,115,47,'4JHotrGIRVv3bi1fdaOHcVbwPD']},nil,nil},nil}}},<<'<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,",
" {badmatch,{error,closed}},",
" [{webmachine_request,recv_unchunked_body,3,",
" [{file,\\'src/webmachine_request.erl\\'},{line,489}]},",
" {webmachine_request,do_recv_body,1,",
" [{file,\\'src/webmachine_request.erl\\'},{line,448}]},",
" {webmachine_request,call,2,",
" [{file,\\'src/webmachine_request.erl\\'},{line,196}]},",
" {wrq,req_body,1,[{file,\\'src/wrq.erl\\'},{line,118}]},",
" {riak_kv_wm_object,accept_doc_body,2,",
" [{file,\\'src/riak_kv_wm_object.erl\\'},{line,640}]},",
" {webmachine_resource,resource_call,3,",
" [{file,\\'src/webmachine_resource.erl\\'},{line,186}]},",
" {webmachine_resource,do,3,",
" [{file,\\'src/webmachine_resource.erl\\'},{line,142}]},",
" {webmachine_decision_core,resource_call,1,",
" [{file,\\'src/webmachine_decision_core.erl\\'},{line,48}]}]}}</pre><P><HR><ADDRESS>mochiweb+webmachine web server</ADDRESS></body></html>'>>,follow_request,['reporting-provider','p','cloudability','org'],8080,[]},undefined,undefined,{wm_log_data,undefined,{1427,225528,312286},'POST',{10,{'user-agent',{'User-Agent','Ruby'},{'content-length',{'Content-Length','258732'},{'connection',{'Connection','keep-alive'},{'accept',{'Accept','multipart/mixed, application/json;q=0.7, */*;q=0.5'},nil,nil},nil},{'host',{'Host','reporting-provider.p.cloudability.org:8080'},{'content-type',{'Content-Type','application/json'},nil,nil},nil}},{'x-forwarded-proto',{'X-Forwarded-Proto','https'},{'x-forwarded-port',{'X-Forwarded-Port','8080'},{'x-forwarded-for',{'X-Forwarded-For','54.158.216.244'},nil,nil},nil},{'x-riak-clientid',{'X-Riak-Clientid','dtjGTw=='},nil,nil}}}},'54.158.216.244','54.158.216.244','/buckets/samples_instances_responses/keys?returnbody=true',{1,1},{500,undefined},1129,undefined,{1427,225587,930367},undefined}}},{decision,v3n11},{code,500},{tmp_reqstate,empty},{resource,{webmachine_resource,riak_kv_wm_object,{ctx,2,<<'samples_instances_responses'>>,<<'4JHotrGIRVv3bi1fdaOHcVbwPD'>>,{riak_client,'production-riak-018@10.153.240.138',undefined},default,default,default,default,default,default,default,default,false,'riak',local,{error,notfound},undefined,undefined,[],[],'POST',undefined},[{accept_doc_body,2},{allow_missing_post,2},{allowed_methods,2},{charsets_provided,2},{content_types_accepted,2},{content_types_provided,2},{create_path,2},{delete_resource,2},{encodings_provided,2},{forbidden,2},{generate_etag,2},{init,1},{last_modified,2},{malformed_request,2},{module_info,1},{multiple_choices,2},{ping,2},{post_is_create,2},{process_post,2},{produce_doc_body,2},{produce_multipart_body,2},{produce_sibling_message_body,2},{resource_exists,2},{service_available,2}],false}}]\n"]
@jackdesert
Copy link
Author

Sorry about the formatting. Pulled this from SumoLogic logs, and split on "\n" to get the stack trace to print readable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment