can you add a log here :
https://github.com/ChicagoBoss/ChicagoBoss/blob/master/src/boss/boss_web_controller_util.erl#L32 lager:info("App ~p, Controllers ~p",[AppName, ControllerList]), 2015-01-13 1:29 GMT+08:00 Emacs the Viking <[email protected]>: > Did, that, made no difference whatsoever, the list of controller still > appears to be empty, here is the console output: > > 2015-01-12 17:28:40.219 [notice] >> <0.267.0>@boss_web_controller_handle_request:handle_request:23 >> ApplicationForPath smsengine >> 2015-01-12 17:28:40.222 [info] <0.255.0>@boss_router_controller:route:171 >> Boss Route smsengine "web" "index" [] >> 2015-01-12 17:28:40.222 [info] <0.255.0>@boss_router_controller:route:172 >> ???>>> App smsengine >> 2015-01-12 17:28:40.222 [info] <0.255.0>@boss_router_controller:route:173 >> ???>>> C "web" >> 2015-01-12 17:28:40.222 [info] <0.255.0>@boss_router_controller:route:174 >> ???>>> Controllers [] >> 2015-01-12 17:28:40.237 [warning] <0.6.0> lager_error_logger_h dropped 30 >> messages in the last second that exceeded the limit of 50 messages/sec >> 2015-01-12 17:28:40.237 [error] <0.255.0> gen_server <0.255.0> terminated >> with reason: bad argument in call to erlang:list_to_atom(undefined) in >> boss_router_controller:route/2 line 176 >> 2015-01-12 17:28:40.237 [error] <0.255.0> CRASH REPORT Process <0.255.0> >> with 0 neighbours exited with reason: bad argument in call to >> erlang:list_to_atom(undefined) in boss_router_controller:route/2 line 176 >> in gen_server:terminate/7 line 804 >> 2015-01-12 17:28:40.238 [error] <0.254.0> Supervisor >> {<0.254.0>,boss_router_sup} had child router_controller started with >> boss_router_controller:start_link([{application,smsengine},{controllers,[]}]) >> at <0.255.0> exit with reason bad argument in call to >> erlang:list_to_atom(undefined) in boss_router_controller:route/2 line 176 >> in context child_terminated >> 2015-01-12 17:28:40.238 [error] >> <0.267.0>@boss_web_controller_handle_request:handle_request:30 Unhandled >> Error: >> exit:{{badarg,[{erlang,list_to_atom,[undefined],[]},{boss_router_controller,route,2,[{file,"src/boss/boss_router_controller.erl"},{line,176}]},{boss_router_controller,handle_call,3,[{file,"src/boss/boss_router_controller.erl"},{line,64}]},{gen_server,try_handle_call,4,[{file,"gen_server.erl"},{line,607}]},{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,639}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]},{gen_server,call,[<0.255.0>,{route,"/"}]}}. >> Stacktrace: >> [{gen_server,call,2,[{file,"gen_server.erl"},{line,182}]},{boss_web_controller_handle_request,process_dynamic_request,4,[{file,"src/boss/boss_web_controller_handle_request.erl"},{line,237}]},{boss_web_controller_handle_request,process_request,4,[{file,"src/boss/boss_web_controller_handle_request.erl"},{line,232}]},{boss_web_controller_handle_request,set_timer,7,[{file,"src/boss/boss_web_controller_handle_request.erl"},{line,148}]},{boss_web_controller_handle_request,build_dynamic_response,4,[{file,"src/boss/boss_web_controller_handle_request.erl"},{line,122}]},{boss_web_controller_handle_request,handle_request,3,[{file,"src/boss/boss_web_controller_handle_request.erl"},{line,26}]},{mochicow_upgrade,upgrade,4,[{file,"src/mochicow_upgrade.erl"},{line,72}]},{cowboy_protocol,execute,4,[{file,"src/cowboy_protocol.erl"},{line,529}]}] >> 2015-01-12 17:28:40.248 [info] <0.269.0> Loading routes from >> "../smsengine/priv/smsengine.routes" .... >> > > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/6e61dc3c-0ed3-498d-a350-f077004b3bf4%40googlegroups.com > <https://groups.google.com/d/msgid/chicagoboss/6e61dc3c-0ed3-498d-a350-f077004b3bf4%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/CAB-Ofh%3DVnVgH2zfE-zfZhQnZmP2V7TSaAmbht8j0OwK2-sM-0g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
