Skip to content

Instantly share code, notes, and snippets.

@afrantisak
Last active August 29, 2015 14:07
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 afrantisak/52797480ad204948001c to your computer and use it in GitHub Desktop.
Save afrantisak/52797480ad204948001c to your computer and use it in GitHub Desktop.
nitrogen slim_cowboy app dependency problem
=ERROR REPORT==== 29-Sep-2014::17:05:20 ===
Error in simple_bridge:make/2 - error - function_clause
[{cowboy_simple_bridge,init,
[{sbw,cowboy_simple_bridge,
{cowboy_bridge,#Ref<0.0.0.250>},
false,[],[],[],none,
[{<<"host">>,<<"localhost:8000">>},
{<<"connection">>,<<"keep-alive">>},
{<<"cache-control">>,<<"max-age=0">>},
{<<"accept">>,
<<"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8">>},
{<<"user-agent">>,
<<"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/37.0.2062.94 Chrome/37.0.2062.94 Safari/537.36">>},
{<<"accept-encoding">>,<<"gzip,deflate,sdch">>},
{<<"accept-language">>,<<"en-US,en;q=0.8">>}],
[],
{response,200,[],[],[]}}],
[{file,"src/cowboy_bridge_modules/cowboy_simple_bridge.erl"},
{line,46}]},
{simple_bridge,make_nocatch,2,[{file,"src/simple_bridge.erl"},{line,88}]},
{simple_bridge,inner_make,2,[{file,"src/simple_bridge.erl"},{line,81}]},
{nitrogen_cowboy,handle,2,[{file,"src/nitrogen_cowboy.erl"},{line,26}]},
{cowboy_handler,handler_handle,4,
[{file,"src/cowboy_handler.erl"},{line,119}]},
{cowboy_protocol,execute,4,[{file,"src/cowboy_protocol.erl"},{line,523}]}]
=ERROR REPORT==== 29-Sep-2014::17:05:20 ===
** Cowboy handler nitrogen_cowboy terminating in handle/2
for the reason error:function_clause
** Handler state was {state,[],"http_handler"}
** Request was [{socket,#Port<0.1676>},
{transport,ranch_tcp},
{connection,keepalive},
{pid,<0.204.0>},
{method,<<"GET">>},
{version,'HTTP/1.1'},
{peer,{{127,0,0,1},58036}},
{host,<<"localhost">>},
{host_info,undefined},
{port,8000},
{path,<<"/">>},
{path_info,undefined},
{qs,<<>>},
{qs_vals,undefined},
{bindings,[]},
{headers,[{<<"host">>,<<"localhost:8000">>},
{<<"connection">>,<<"keep-alive">>},
{<<"cache-control">>,<<"max-age=0">>},
{<<"accept">>,
<<"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8">>},
{<<"user-agent">>,
<<"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/37.0.2062.94 Chrome/37.0.2062.94 Safari/537.36">>},
{<<"accept-encoding">>,<<"gzip,deflate,sdch">>},
{<<"accept-language">>,<<"en-US,en;q=0.8">>}]},
{p_headers,[{<<"connection">>,[<<"keep-alive">>]}]},
{cookies,undefined},
{meta,[]},
{body_state,waiting},
{multipart,undefined},
{buffer,<<>>},
{resp_compress,false},
{resp_state,waiting},
{resp_headers,[]},
{resp_body,<<>>},
{onresponse,undefined}]
** Stacktrace: [{nitrogen_cowboy,handle,2,
[{file,"src/nitrogen_cowboy.erl"},{line,26}]},
{cowboy_handler,handler_handle,4,
[{file,"src/cowboy_handler.erl"},{line,119}]},
{cowboy_protocol,execute,4,
[{file,"src/cowboy_protocol.erl"},
{line,523}]}]
=INFO REPORT==== 29-Sep-2014::17:13:35 ===
{error,error,undef,
[{sbw,post_param,
[<<"pageContext">>,
{simple_bridge_request_wrapper,cowboy_request_bridge,
{cowboy_bridge,#Ref<0.0.0.229>},
false,[],[],none}],
[]},
{wf_core,deserialize_request_context,0,
[{file,"src/wf_core.erl"},{line,130}]},
{wf_core,run_catched,0,[{file,"src/wf_core.erl"},{line,76}]},
{wf_core,run,0,[{file,"src/wf_core.erl"},{line,23}]},
{nitrogen_cowboy,handle,2,[{file,"src/nitrogen_cowboy.erl"},{line,32}]},
{cowboy_handler,handler_handle,4,
[{file,"src/cowboy_handler.erl"},{line,119}]},
{cowboy_protocol,execute,4,
[{file,"src/cowboy_protocol.erl"},{line,523}]}]}
=INFO REPORT==== 29-Sep-2014::17:13:35 ===
{error,error,undef,
[{simple_bridge_request_wrapper,set_status_code,
[500,
{simple_bridge_request_wrapper,cowboy_request_bridge,
{cowboy_bridge,#Ref<0.0.0.229>},
false,[],[],none}],
[]},
{wf_context,status_code,1,[{file,"src/lib/wf_context.erl"},{line,195}]},
{wf,status_code,1,[{file,"src/wf.erl"},{line,256}]},
{default_crash_handler,first_request,5,
[{file,"src/handlers/crash/default_crash_handler.erl"},{line,19}]},
{wf_core,run_crashed_first_request,3,
[{file,"src/wf_core.erl"},{line,194}]},
{wf_core,run_crash,4,[{file,"src/wf_core.erl"},{line,41}]},
{nitrogen_cowboy,handle,2,[{file,"src/nitrogen_cowboy.erl"},{line,32}]},
{cowboy_handler,handler_handle,4,
[{file,"src/cowboy_handler.erl"},{line,119}]}]}
=ERROR REPORT==== 29-Sep-2014::17:13:35 ===
** Cowboy handler nitrogen_cowboy terminating in handle/2
for the reason error:undef
** Handler state was {state,[],"http_handler"}
** Request was [{socket,#Port<0.1704>},
{transport,ranch_tcp},
{connection,keepalive},
{pid,<0.205.0>},
{method,<<"GET">>},
{version,'HTTP/1.1'},
{peer,{{127,0,0,1},58133}},
{host,<<"localhost">>},
{host_info,undefined},
{port,8000},
{path,<<"/">>},
{path_info,undefined},
{qs,<<>>},
{qs_vals,undefined},
{bindings,[]},
{headers,[{<<"host">>,<<"localhost:8000">>},
{<<"connection">>,<<"keep-alive">>},
{<<"cache-control">>,<<"max-age=0">>},
{<<"accept">>,
<<"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8">>},
{<<"user-agent">>,
<<"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/37.0.2062.94 Chrome/37.0.2062.94 Safari/537.36">>},
{<<"accept-encoding">>,<<"gzip,deflate,sdch">>},
{<<"accept-language">>,<<"en-US,en;q=0.8">>}]},
{p_headers,[{<<"connection">>,[<<"keep-alive">>]}]},
{cookies,undefined},
{meta,[]},
{body_state,waiting},
{multipart,undefined},
{buffer,<<>>},
{resp_compress,false},
{resp_state,waiting},
{resp_headers,[]},
{resp_body,<<>>},
{onresponse,undefined}]
** Stacktrace: [{sbw,set_status_code,
[500,
{simple_bridge_request_wrapper,cowboy_request_bridge,
{cowboy_bridge,#Ref<0.0.0.229>},
false,[],[],none}],
[]},
{wf_core,run_crash,4,[{file,"src/wf_core.erl"},{line,46}]},
{nitrogen_cowboy,handle,2,
[{file,"src/nitrogen_cowboy.erl"},{line,32}]},
{cowboy_handler,handler_handle,4,
[{file,"src/cowboy_handler.erl"},{line,119}]},
{cowboy_protocol,execute,4,
[{file,"src/cowboy_protocol.erl"},{line,523}]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment