Skip to content

Instantly share code, notes, and snippets.

@goshacmd
Created August 21, 2012 22:57
Show Gist options
  • Save goshacmd/3420139 to your computer and use it in GitHub Desktop.
Save goshacmd/3420139 to your computer and use it in GitHub Desktop.
Dynamo fails :(
dynamo_demo(master)$ mix do clean, iex
Compiled lib/dynamo_demo.ex
Compiled lib/dynamo_demo/app.ex
Generated dynamo_demo.app
Interactive Elixir (0.7.0.dev) - press Ctrl+C to exit
Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:4:4] [async-threads:0] [hipe] [kernel-poll:false] [dtrace]
iex(1)> DynamoDemo.start
Running DynamoDemo.App on port 3000 with Cowboy
:ok
iex(2)>
=ERROR REPORT==== 22-Aug-2012::01:56:21 ===
** Handler 'Elixir-Dynamo-Cowboy-Handler' terminating in init/3
for the reason error:undef
** Options were 'Elixir-DynamoDemo-App'
** Request was [{socket,#Port<0.3295>},
{transport,cowboy_tcp_transport},
{connection,keepalive},
{pid,<0.163.0>},
{method,'GET'},
{version,{1,1}},
{peer,undefined},
{host,[<<"localhost">>]},
{host_info,undefined},
{raw_host,<<"localhost">>},
{port,3000},
{path,[<<"hello">>]},
{path_info,undefined},
{raw_path,<<"/hello">>},
{qs_vals,undefined},
{raw_qs,<<>>},
{bindings,[]},
{headers,
[{'Connection',<<"keep-alive">>},
{'Accept-Encoding',<<"gzip, deflate">>},
{'Accept-Language',<<"en-us">>},
{'Cache-Control',<<"max-age=0">>},
{'Accept',
<<"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8">>},
{'User-Agent',
<<"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8) AppleWebKit/536.25 (KHTML, like Gecko) Version/6.0 Safari/536.25">>},
{'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.3295>,cowboy_tcp_transport,keepalive,
<0.163.0>,'GET',
{1,1},
undefined,
[<<"localhost">>],
undefined,<<"localhost">>,3000,
[<<"hello">>],
undefined,<<"/hello">>,undefined,<<>>,[],
[{'Connection',<<"keep-alive">>},
{'Accept-Encoding',<<"gzip, deflate">>},
{'Accept-Language',<<"en-us">>},
{'Cache-Control',<<"max-age=0">>},
{'Accept',
<<"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8">>},
{'User-Agent',
<<"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8) AppleWebKit/536.25 (KHTML, like Gecko) Version/6.0 Safari/536.25">>},
{'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}]}]
nil
iex(3)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment