Skip to content

Instantly share code, notes, and snippets.

@guedes
Created August 26, 2012 15:05
Show Gist options
  • Save guedes/3480880 to your computer and use it in GitHub Desktop.
Save guedes/3480880 to your computer and use it in GitHub Desktop.
guedes@betelgeuse:/disco/guedes/guedes/programas/Erlang/dynamo_demo
(master)$ elixir --no-halt -S mix run "DynamoDemo.start"
Running DynamoDemo.App on port 3000 with Cowboy
=ERROR REPORT==== 26-Aug-2012::12:03:13 ===
** Handler 'Elixir-Dynamo-Cowboy-Handler' terminating in init/3
for the reason error:undef
** Options were 'Elixir-DynamoDemo-App'
** Request was [{socket,#Port<0.3099>},
{transport,cowboy_tcp_transport},
{connection,keepalive},
{pid,<0.155.0>},
{method,'GET'},
{version,{1,1}},
{peer,undefined},
{host,[<<"localhost">>]},
{host_info,undefined},
{raw_host,<<"localhost">>},
{port,3000},
{path,[]},
{path_info,undefined},
{raw_path,<<"/">>},
{qs_vals,undefined},
{raw_qs,<<>>},
{bindings,[]},
{headers,
[{'Accept-Charset',<<"ISO-8859-1,utf-8;q=0.7,*;q=0.3">>},
{'Accept-Language',
<<"pt-BR,pt;q=0.8,en-US;q=0.6,en;q=0.4">>},
{'Accept-Encoding',<<"gzip,deflate,sdch">>},
{'Accept',
<<"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8">>},
{'User-Agent',
<<"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.81 Safari/537.1">>},
{'Connection',<<"keep-alive">>},
{'Host',<<"localhost:3000">>}]},
{p_headers,[{'Connection',[<<"keep-alive">>]}]},
{cookies,undefined},
{meta,[]},
{body_state,waiting},
{buffer,<<>>},
{resp_state,waiting},
{resp_headers,[]},
{resp_body,<<>>},
{onresponse,undefined},
{urldecode,{#Fun<cowboy_http.urldecode.2>,crash}}]
** Stacktrace: [{'Elixir-Dynamo-Cowboy-Handler',init,
[{tcp,http},
{http_req,#Port<0.3099>,cowboy_tcp_transport,keepalive,
<0.155.0>,'GET',
{1,1},
undefined,
[<<"localhost">>],
undefined,<<"localhost">>,3000,[],undefined,<<"/">>,
undefined,<<>>,[],
[{'Accept-Charset',
<<"ISO-8859-1,utf-8;q=0.7,*;q=0.3">>},
{'Accept-Language',
<<"pt-BR,pt;q=0.8,en-US;q=0.6,en;q=0.4">>},
{'Accept-Encoding',<<"gzip,deflate,sdch">>},
{'Accept',
<<"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8">>},
{'User-Agent',
<<"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.81 Safari/537.1">>},
{'Connection',<<"keep-alive">>},
{'Host',<<"localhost:3000">>}],
[{'Connection',[<<"keep-alive">>]}],
undefined,[],waiting,<<>>,waiting,[],<<>>,undefined,
{#Fun<cowboy_http.urldecode.2>,crash}},
'Elixir-DynamoDemo-App'],
[]},
{cowboy_http_protocol,handler_init,2,
[{file,"src/cowboy_http_protocol.erl"},{line,258}]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment