Skip to content

Instantly share code, notes, and snippets.

@sokal32
Created April 15, 2015 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sokal32/8019e0eae2bbbbf05d91 to your computer and use it in GitHub Desktop.
Save sokal32/8019e0eae2bbbbf05d91 to your computer and use it in GitHub Desktop.
15:19:19:509401 (<0.375.0>) exit {[{reason,badarg},
{mfa,{bullet_handler,handle,2}},
{stacktrace,[{erlang,binary_to_term,
[<<131,104,2,100,0,6,99,108,105,101,110,116,104,2,100,0,12,65,117,116,104,
101,110,116,105,99,97,116,101,97,1>>,
[safe]],
[]},
{n2o_websocket,stream,3,
[{file,"/Users/sokal/Sites/ua-my-ua/deps/n2o/src/endpoints/n2o_websocket.erl"},
{line,15}]},
{bullet_handler,handle,3,
[{file,"/Users/sokal/Sites/ua-my-ua/deps/n2o/src/endpoints/cowboy/bullet_handler.erl"},
{line,102}]},
{cowboy_handler,handler_handle,4,
[{file,"/Users/sokal/Sites/ua-my-ua/deps/cowboy/src/cowboy_handler.erl"},
{line,111}]},
{cowboy_protocol,execute,4,
[{file,"/Users/sokal/Sites/ua-my-ua/deps/cowboy/src/cowboy_protocol.erl"},
{line,442}]}]},
{req,[{socket,#Port<0.52734>},
{transport,ranch_tcp},
{connection,keepalive},
{pid,<0.375.0>},
{method,<<"POST">>},
{version,'HTTP/1.1'},
{peer,{{127,0,0,1},59087}},
{host,<<"localhost">>},
{host_info,undefined},
{port,31337},
{path,<<"/ws/">>},
{path_info,[]},
{qs,<<>>},
{qs_vals,[]},
{bindings,[]},
{headers,[{<<"host">>,<<"localhost:31337">>},
{<<"connection">>,<<"keep-alive">>},
{<<"content-length">>,<<"31">>},
{<<"origin">>,<<"http://localhost:31337">>},
{<<"x-socket-transport">>,<<"xhrPolling">>},
{<<"user-agent">>,
<<"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36">>},
{<<"content-type">>,<<"application/x-www-form-urlencoded; charset=utf-8">>},
{<<"accept">>,<<"*/*">>},
{<<"referer">>,<<"http://localhost:31337/">>},
{<<"accept-encoding">>,<<"gzip, deflate">>},
{<<"accept-language">>,<<"ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4">>},
{<<"cookie">>,<<"p_cachedDomain=localhost; p_cachedDeals=%5B%5D">>}]},
{p_headers,[{<<"connection">>,[<<"keep-alive">>]}]},
{cookies,undefined},
{meta,[]},
{body_state,waiting},
{buffer,<<131,104,2,100,0,6,99,108,105,101,110,116,104,2,100,0,12,65,117,116,104,101,110,
116,105,99,97,116,101,97,1>>},
{multipart,undefined},
{resp_compress,false},
{resp_state,waiting},
{resp_headers,[{<<"Access-Control-Allow-Origin">>,<<"http://localhost:31337">>}]},
{resp_body,<<>>},
{onresponse,undefined}]},
{state,{state,n2o_bullet,
{cx,[{query,n2o_query},{session,n2o_session},{route,routes}],
[],
{http_req,#Port<0.52734>,ranch_tcp,keepalive,<0.375.0>,<<"POST">>,'HTTP/1.1',
{{127,0,0,1},59087},
<<"localhost">>,undefined,31337,<<"/ws/">>,[],<<>>,[],[],
[{<<"host">>,<<"localhost:31337">>},
{<<"connection">>,<<"keep-alive">>},
{<<"content-length">>,<<"31">>},
{<<"origin">>,<<"http://localhost:31337">>},
{<<"x-socket-transport">>,<<"xhrPolling">>},
{<<"user-agent">>,
<<"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36">>},
{<<"content-type">>,
<<"application/x-www-form-urlencoded; charset=utf-8">>},
{<<"accept">>,<<"*/*">>},
{<<"referer">>,<<"http://localhost:31337/">>},
{<<"accept-encoding">>,<<"gzip, deflate">>},
{<<"accept-language">>,<<"ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4">>},
{<<"cookie">>,
<<"p_cachedDomain=localhost; p_cachedDeals=%5B%5D">>}],
[{<<"connection">>,[<<"keep-alive">>]}],
undefined,[],waiting,
<<131,104,2,100,0,6,99,108,105,101,110,116,104,2,100,0,12,65,117,116,
104,101,110,116,105,99,97,116,101,97,1>>,
undefined,false,waiting,[],<<>>,undefined},
index,undefined,<<"/ws/">>,undefined,[],undefined,[]}}}],
[{cowboy_protocol,execute,4,
[{file,"/Users/sokal/Sites/ua-my-ua/deps/cowboy/src/cowboy_protocol.erl"},
{line,442}]}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment