Last active
August 29, 2015 14:00
-
-
Save tobyhede/03250c00fca6d7434e45 to your computer and use it in GitHub Desktop.
Revisions
-
tobyhede revised this gist
May 1, 2014 . 1 changed file with 4 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -25,6 +25,7 @@ end -------------------------------------------------------------------- 2014-05-01 10:13:05 =ERROR REPORT==== Ranch listener http had connection process started with cowboy_protocol:start_link/4 at <0.291.0> exit with reason: {[{reason,undef},{mfa,{'Elixir.Handler.WeberReqHandler',handle,2}},{stacktrace,[{'WeberTest.Main','__info__',[functions],[]},{'Elixir.Handler.WeberReqHandler',handle,2,[{file,"lib/weber/handler/weber_req_handler.ex"},{line,94}]},{cowboy_handler,handler_handle,4,[{file,"src/cowboy_handler.erl"},{line,115}]},{cowboy_protocol,execute,4,[{file,"src/cowboy_protocol.erl"},{line,435}]}]},{req,[{socket,#Port<0.6136>},{transport,ranch_tcp},{connection,keepalive},{pid,<0.291.0>},{method,<<"GET">>},{version,'HTTP/1.1'},{peer,{{127,0,0,1},61621}},{host,<<"localhost">>}, -
tobyhede revised this gist
May 1, 2014 . 1 changed file with 5 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,4 @@ ``` defmodule Route do import Weber.Route @@ -20,9 +21,10 @@ defmodule WeberTest.Main do end end ``` -------------------------------------------------------------------- ``` 0:10:31.465 [error] Ranch listener http had connection process started with cowboy_protocol:start_link/4 at <0.290.0> exit with reason: {[{reason,undef},{mfa,{'Elixir.Handler.WeberReqHandler',handle,2}},{stacktrace,[{'WeberTest.Main','__info__',[functions],[]},{'Elixir.Handler.WeberReqHandler',handle,2,[{file,"lib/weber/handler/weber_req_handler.ex"},{line,94}]},{cowboy_handler,handler_handle,4,[{file,"src/cowboy_handler.erl"},{line,115}]},{cowboy_protocol,execute,4,[{file,"src/cowboy_protocol.erl"},{line,435}]}]},{req,[{socket,#Port<0.6059>},{transport,ranch_tcp},{connection,keepalive},{pid,<0.290.0>},{method,<<"GET">>},{version,'HTTP/1.1'},{peer,{{127,0,0,1},61589}},{host,<<"localhost">>},{host_info,undefined},{port,8080},{path,<<"/new">>},{path_info,[<<"new">>]},{qs,<<>>},{qs_vals,undefined},{bindings,[]},{headers,[{<<"host">>,<<"localhost:8080">>},{<<"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 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.131 Safari/537.36">>},{<<"accept-encoding">>,<<"gzip,deflate,sdch">>},{<<"accept-language">>,<<"en-US,en;q=0.8">>},{<<"cookie">>,<<"_twofactor_session=YU5OQ0xETVA4Rnl1cEFIbkRUb2lZVmo0UHRObzdBUmxnZFBaU01uenpJeFJHNkRSK1pFNENRZVlTa2VvaTB4cHBsN2JOMnE4V09qR0poWGhETDgrQ090ZHRZZ2ppcHNDaG9BclZOVGlFKzN3QWMvWkdSNEhJSW9uMHRIdTl2UHh5c2I3UzhBSktjeVJIL3dHUGs1M0JPcGI2TzVlWFY2YU55aDkzR1J1a1ovSTBaOXhURlhpdUpVTUNmbElGR1cxMlFvM20xS0oxZHNTUHRSbVZ3WWgzVmE0TW92N01MM2xjZUVuMzRpY1grbzlNVEN0Q3NKS2NudnFrUmlDQStHUzRDY2lZY2NqaVpGdXU1Sm0vNGN2Vm5IaUY5aFMvMm5zOTlJNlk1VHJHWVh6ekNwS0VObkMrV3ZrcGNlVENDWTFiVFJUNmdwL1c4M2hYR3NlbVcvaWt1akdvUSsxWFlDZmhuMUdBN1c3cnhaTTZmOXVPdVY1S3VSQkNmcVpUOXUzT3ppRlFNZVBQbWJVZENZSmRudWdwT2wrZGkrcG9GTmZ5RmJ0eVpBUWkxNGVuZ0JSU1dmVDV0NGxLQXpOVjl4cG9KeHVMWkg5blU0RFVNSlI2aTBHbW1YUytSVTE5dDZYM2prS3FhWlBOVkJTa295bEpMb3F2cHc1UkJEd3lja1FNbjJHTWJzNVJZc1N4bktvc1JjQUdwVTY3Z1Rkck0vNTVBK012NUt0cG9VNEtTNGhBcWJKaDdDQlZaQXhqOG4wSkIvVUVLQkpLbUhXcm85U1g5WGd0NTlPcHlXUWMvQlBVbnZHSVk3TUVralMyTUFnL2tWUGVtYStwOVk4Tm5EQUtKck8wY1E5cEhMRFYzdWxqSHlicnVOSEpRQUNuNXNsanhWb05lM1lmd0xibFFxaHRhZXg0L3pBZVhWcGhLc1d3dEdBWDl4V3cvM2dFVG5ZM2poMlN5TjVFM2dlL1JsbUVCRWJlUmRHRW54SGVHMlRoV2o3Nll6Z3BTVkFrQlM5aDJxa1RicG9DVERKTzY4NHpEMTdMUT09LS1QVFFoQy9JaSsyREdHU2lyQlZxVC9BPT0%3D--eeb0667fa422af229d2849e7b504e514f74ce59d; __profilin=p%3Dt; auth=Z3Vlc3Q6Z3Vlc3Q%3D; m=34e2:">>}]},{p_headers,[{<<"connection">>,[<<"keep-alive">>]}]},{cookies,undefined},{meta,[]},{body_state,waiting},{buffer,<<>>},{multipart,undefined},{resp_compress,false},{resp_state,waiting},{resp_headers,[]},{resp_body,<<>>},{onresponse,undefined}]},{state,{'Elixir.Handler.WeberReqHandler.State',[{webserver,[{http_host,<<"localhost">>},{http_port,8080},{acceptors,100},{ssl,false},{cacertfile_path,<<>>},{certfile_path,<<>>},{keyfile_path,<<>>}]},{ws,[{ws_port,8080},{ws_mod,'Handler'}]},{use_internationalization,false},{localization,[{default_locale,en_US},{use_locales,[en_US]}]},{use_sessions,false},{session,[{max_age,1440}]},{log,true},{reload,true}],'Elixir.Handler.WeberReqHandler.Development.Result'}}],[{cowboy_protocol,execute,4,[{file,"src/cowboy_protocol.erl"},{line,435}]}]} ``` -
tobyhede revised this gist
May 1, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -22,7 +22,7 @@ defmodule WeberTest.Main do end -------------------------------------------------------------------- ''' 0:10:31.465 [error] Ranch listener http had connection process started with cowboy_protocol:start_link/4 at <0.290.0> exit with reason: {[{reason,undef},{mfa,{'Elixir.Handler.WeberReqHandler',handle,2}},{stacktrace,[{'WeberTest.Main','__info__',[functions],[]},{'Elixir.Handler.WeberReqHandler',handle,2,[{file,"lib/weber/handler/weber_req_handler.ex"},{line,94}]},{cowboy_handler,handler_handle,4,[{file,"src/cowboy_handler.erl"},{line,115}]},{cowboy_protocol,execute,4,[{file,"src/cowboy_protocol.erl"},{line,435}]}]},{req,[{socket,#Port<0.6059>},{transport,ranch_tcp},{connection,keepalive},{pid,<0.290.0>},{method,<<"GET">>},{version,'HTTP/1.1'},{peer,{{127,0,0,1},61589}},{host,<<"localhost">>},{host_info,undefined},{port,8080},{path,<<"/new">>},{path_info,[<<"new">>]},{qs,<<>>},{qs_vals,undefined},{bindings,[]},{headers,[{<<"host">>,<<"localhost:8080">>},{<<"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 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.131 Safari/537.36">>},{<<"accept-encoding">>,<<"gzip,deflate,sdch">>},{<<"accept-language">>,<<"en-US,en;q=0.8">>},{<<"cookie">>,<<"_twofactor_session=YU5OQ0xET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y9JaSsyREdHU2lyQlZxVC9BPT0%3D--eeb0667fa422af229d2849e7b504e514f74ce59d; __profilin=p%3Dt; auth=Z3Vlc3Q6Z3Vlc3Q%3D; m=34e2:">>}]},{p_headers,[{<<"connection">>,[<<"keep-alive">>]}]},{cookies,undefined},{meta,[]},{body_state,waiting},{buffer,<<>>},{multipart,undefined},{resp_compress,false},{resp_state,waiting},{resp_headers,[]},{resp_body,<<>>},{onresponse,undefined}]},{state,{'Elixir.Handler.WeberReqHandler.State',[{webserver,[{http_host,<<"localhost">>},{http_port,8080},{acceptors,100},{ssl,false},{cacertfile_path,<<>>},{certfile_path,<<>>},{keyfile_path,<<>>}]},{ws,[{ws_port,8080},{ws_mod,'Handler'}]},{use_internationalization,false},{localization,[{default_locale,en_US},{use_locales,[en_US]}]},{use_sessions,false},{session,[{max_age,1440}]},{log,true},{reload,true}],'Elixir.Handler.WeberReqHandler.Development.Result'}}],[{cowboy_protocol,execute,4,[{file,"src/cowboy_protocol.erl"},{line,435}]}]} ''' -
tobyhede renamed this gist
May 1, 2014 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -23,4 +23,6 @@ end # -------------------------------------------------------------------- ''' 0:10:31.465 [error] Ranch listener http had connection process started with cowboy_protocol:start_link/4 at <0.290.0> exit with reason: {[{reason,undef},{mfa,{'Elixir.Handler.WeberReqHandler',handle,2}},{stacktrace,[{'WeberTest.Main','__info__',[functions],[]},{'Elixir.Handler.WeberReqHandler',handle,2,[{file,"lib/weber/handler/weber_req_handler.ex"},{line,94}]},{cowboy_handler,handler_handle,4,[{file,"src/cowboy_handler.erl"},{line,115}]},{cowboy_protocol,execute,4,[{file,"src/cowboy_protocol.erl"},{line,435}]}]},{req,[{socket,#Port<0.6059>},{transport,ranch_tcp},{connection,keepalive},{pid,<0.290.0>},{method,<<"GET">>},{version,'HTTP/1.1'},{peer,{{127,0,0,1},61589}},{host,<<"localhost">>},{host_info,undefined},{port,8080},{path,<<"/new">>},{path_info,[<<"new">>]},{qs,<<>>},{qs_vals,undefined},{bindings,[]},{headers,[{<<"host">>,<<"localhost:8080">>},{<<"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 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.131 Safari/537.36">>},{<<"accept-encoding">>,<<"gzip,deflate,sdch">>},{<<"accept-language">>,<<"en-US,en;q=0.8">>},{<<"cookie">>,<<"_twofactor_session=YU5OQ0xETVA4Rnl1cEFIbkRUb2lZVmo0UHRObzdBUmxnZFBaU01uenpJeFJHNkRSK1pFNENRZVlTa2VvaTB4cHBsN2JOMnE4V09qR0poWGhETDgrQ090ZHRZZ2ppcHNDaG9BclZOVGlFKzN3QWMvWkdSNEhJSW9uMHRIdTl2UHh5c2I3UzhBSktjeVJIL3dHUGs1M0JPcGI2TzVlWFY2YU55aDkzR1J1a1ovSTBaOXhURlhpdUpVTUNmbElGR1cxMlFvM20xS0oxZHNTUHRSbVZ3WWgzVmE0TW92N01MM2xjZUVuMzRpY1grbzlNVEN0Q3NKS2NudnFrUmlDQStHUzRDY2lZY2NqaVpGdXU1Sm0vNGN2Vm5IaUY5aFMvMm5zOTlJNlk1VHJHWVh6ekNwS0VObkMrV3ZrcGNlVENDWTFiVFJUNmdwL1c4M2hYR3NlbVcvaWt1akdvUSsxWFlDZmhuMUdBN1c3cnhaTTZmOXVPdVY1S3VSQkNmcVpUOXUzT3ppRlFNZVBQbWJVZENZSmRudWdwT2wrZGkrcG9GTmZ5RmJ0eVpBUWkxNGVuZ0JSU1dmVDV0NGxLQXpOVjl4cG9KeHVMWkg5blU0RFVNSlI2aTBHbW1YUytSVTE5dDZYM2prS3FhWlBOVkJTa295bEpMb3F2cHc1UkJEd3lja1FNbjJHTWJzNVJZc1N4bktvc1JjQUdwVTY3Z1Rkck0vNTVBK012NUt0cG9VNEtTNGhBcWJKaDdDQlZaQXhqOG4wSkIvVUVLQkpLbUhXcm85U1g5WGd0NTlPcHlXUWMvQlBVbnZHSVk3TUVralMyTUFnL2tWUGVtYStwOVk4Tm5EQUtKck8wY1E5cEhMRFYzdWxqSHlicnVOSEpRQUNuNXNsanhWb05lM1lmd0xibFFxaHRhZXg0L3pBZVhWcGhLc1d3dEdBWDl4V3cvM2dFVG5ZM2poMlN5TjVFM2dlL1JsbUVCRWJlUmRHRW54SGVHMlRoV2o3Nll6Z3BTVkFrQlM5aDJxa1RicG9DVERKTzY4NHpEMTdMUT09LS1QVFFoQy9JaSsyREdHU2lyQlZxVC9BPT0%3D--eeb0667fa422af229d2849e7b504e514f74ce59d; __profilin=p%3Dt; auth=Z3Vlc3Q6Z3Vlc3Q%3D; m=34e2:">>}]},{p_headers,[{<<"connection">>,[<<"keep-alive">>]}]},{cookies,undefined},{meta,[]},{body_state,waiting},{buffer,<<>>},{multipart,undefined},{resp_compress,false},{resp_state,waiting},{resp_headers,[]},{resp_body,<<>>},{onresponse,undefined}]},{state,{'Elixir.Handler.WeberReqHandler.State',[{webserver,[{http_host,<<"localhost">>},{http_port,8080},{acceptors,100},{ssl,false},{cacertfile_path,<<>>},{certfile_path,<<>>},{keyfile_path,<<>>}]},{ws,[{ws_port,8080},{ws_mod,'Handler'}]},{use_internationalization,false},{localization,[{default_locale,en_US},{use_locales,[en_US]}]},{use_sessions,false},{session,[{max_age,1440}]},{log,true},{reload,true}],'Elixir.Handler.WeberReqHandler.Development.Result'}}],[{cowboy_protocol,execute,4,[{file,"src/cowboy_protocol.erl"},{line,435}]}]} ''' -
tobyhede revised this gist
May 1, 2014 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -20,3 +20,7 @@ defmodule WeberTest.Main do end end # -------------------------------------------------------------------- 0:10:31.465 [error] Ranch listener http had connection process started with cowboy_protocol:start_link/4 at <0.290.0> exit with reason: {[{reason,undef},{mfa,{'Elixir.Handler.WeberReqHandler',handle,2}},{stacktrace,[{'WeberTest.Main','__info__',[functions],[]},{'Elixir.Handler.WeberReqHandler',handle,2,[{file,"lib/weber/handler/weber_req_handler.ex"},{line,94}]},{cowboy_handler,handler_handle,4,[{file,"src/cowboy_handler.erl"},{line,115}]},{cowboy_protocol,execute,4,[{file,"src/cowboy_protocol.erl"},{line,435}]}]},{req,[{socket,#Port<0.6059>},{transport,ranch_tcp},{connection,keepalive},{pid,<0.290.0>},{method,<<"GET">>},{version,'HTTP/1.1'},{peer,{{127,0,0,1},61589}},{host,<<"localhost">>},{host_info,undefined},{port,8080},{path,<<"/new">>},{path_info,[<<"new">>]},{qs,<<>>},{qs_vals,undefined},{bindings,[]},{headers,[{<<"host">>,<<"localhost:8080">>},{<<"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 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.131 Safari/537.36">>},{<<"accept-encoding">>,<<"gzip,deflate,sdch">>},{<<"accept-language">>,<<"en-US,en;q=0.8">>},{<<"cookie">>,<<"_twofactor_session=YU5OQ0xETVA4Rnl1cEFIbkRUb2lZVmo0UHRObzdBUmxnZFBaU01uenpJeFJHNkRSK1pFNENRZVlTa2VvaTB4cHBsN2JOMnE4V09qR0poWGhETDgrQ090ZHRZZ2ppcHNDaG9BclZOVGlFKzN3QWMvWkdSNEhJSW9uMHRIdTl2UHh5c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waiting},{buffer,<<>>},{multipart,undefined},{resp_compress,false},{resp_state,waiting},{resp_headers,[]},{resp_body,<<>>},{onresponse,undefined}]},{state,{'Elixir.Handler.WeberReqHandler.State',[{webserver,[{http_host,<<"localhost">>},{http_port,8080},{acceptors,100},{ssl,false},{cacertfile_path,<<>>},{certfile_path,<<>>},{keyfile_path,<<>>}]},{ws,[{ws_port,8080},{ws_mod,'Handler'}]},{use_internationalization,false},{localization,[{default_locale,en_US},{use_locales,[en_US]}]},{use_sessions,false},{session,[{max_age,1440}]},{log,true},{reload,true}],'Elixir.Handler.WeberReqHandler.Development.Result'}}],[{cowboy_protocol,execute,4,[{file,"src/cowboy_protocol.erl"},{line,435}]}]} -
tobyhede created this gist
May 1, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ defmodule Route do import Weber.Route require Weber.Route route on("GET", "/new", :WeberTest.Main, :blah) |> on("GET", "/", :WeberTest.Main, :index) end defmodule WeberTest.Main do def blah([], _conn) do {:render, [response: "ok"], []} end def index(_, _conn) do {:render, [count: 10], []} end end