"Error in controller, see console.log for details\n"
{sbw,cowboy_simple_bridge, {cowboy_bridge,#Ref<0.0.0.144911>}, false, [{<<"first_name">>,<<"Anda">>}, {<<"last_name">>,<<"bisa">>}, {<<"address">>,<<"Chicago">>}, {<<"notes">>,<<"Mantap">>}], [],[],none, [{<<"host">>,<<"127.0.0.1:8001">>}, {<<"connection">>,<<"keep-alive">>}, {<<"content-length">>,<<"59">>}, {<<"pragma">>,<<"no-cache">>}, {<<"cache-control">>,<<"no-cache">>}, {<<"origin">>,<<"http://127.0.0.1:8001">>}, {<<"upgrade-insecure-requests">>,<<"1">>}, {<<"user-agent">>, <<"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36">>}, {<<"content-type">>,<<"application/x-www-form-urlencoded">>}, {<<"accept">>, <<"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8">>}, {<<"referer">>,<<"http://127.0.0.1:8001/voter/register">>}, {<<"accept-encoding">>,<<"gzip, deflate">>}, {<<"accept-language">>,<<"en-US,en;q=0.8">>}, {<<"cookie">>, <<"csrftoken=pfMY4UPoNYv8avsfl8gYCDVoHm0xyrv5; AuthSession=bXVsaWFudG86NTgwRjY4NEE6VgjtIAUiJyNrBe9v24dQ9qzMDa0; session_id=e68d8840c82404c1a0e9318148a82659; user_id=ward_boss-1">>}], [{<<"csrftoken">>,<<"pfMY4UPoNYv8avsfl8gYCDVoHm0xyrv5">>}, {<<"authsession">>, <<"bXVsaWFudG86NTgwRjY4NEE6VgjtIAUiJyNrBe9v24dQ9qzMDa0">>}, {<<"session_id">>,<<"e68d8840c82404c1a0e9318148a82659">>}, {<<"user_id">>,<<"ward_boss-1">>}], {response,200,[],[],[]}}
{boss_app_info,evening,[],"/static","/doc",all, [{evening_01_news,[]}], <0.256.0>,<0.257.0>,<0.259.0>,<0.260.0>, ["greeting","voter","ward_boss"], [], ["evening_greeting_controller","evening_user_controller", "evening_voter_controller"]}
Fri, 28 October 2016 2:19 p.m.
I cannot get the real problem. Also the records data is saved and can list the data when go to the /voter/list
And the error from console :
14:19:11.371 [error] POST /voter/register [evening] 500 6ms
14:19:13.794 [error] Error in controller exit:{noproc,{gen_server,call,
[{global,boss_news},
{created,"voter-13",
[{id,"voter-13"},
{first_name,"Anda"},
{last_name,"bisa"},
{address,"Chicago"},
{notes,"Mantap"},
{ward_boss_id,"ward_boss-1"}]}]}} Stacktrace: [{gen_server,call,2,[{file,"gen_server.erl"},{line,182}]},{boss_record_lib,run_after_hooks,3,[{file,"src/boss_record_lib.erl"},{line,45}]},{boss_db,save_record,2,[{file,"src/boss_db.erl"},{line,423}]},{evening_voter_controller,register,4,[{file,"/home/mulianto/development/erlangweb/evening/src/controller/evening_voter_controller.erl"},{line,23}]},{boss_web_controller,call_controller_action,3,[{file,"src/boss/boss_web_controller.erl"},{line,305}]},{boss_web_controller,apply_action,4,[{file,"src/boss/boss_web_controller.erl"},{line,297}]},{boss_web_controller,execute_action_inner,9,[{file,"src/boss/boss_web_controller.erl"},{line,276}]},{boss_web_controller_handle_request,process_dynamic_request,5,[{file,"src/boss/boss_web_controller_handle_request.erl"},{line,255}]}]
14:19:13.797 [error] "Error in controller, see console.log for details\n"
Hi Mulianto,
The error message should have tell you the reason, if you are not sure, kindly e-mail us the error message and we will then try to figure out.------------------ 原始邮件 ------------------
发件人: "Phang Mulianto";<brav...@gmail.com>;发送时间: 2016年10月28日(星期五) 下午2:23
收件人: "ChicagoBoss"<chicagoboss@googlegroups.com>;
{file,"/home/mulianto/development/erlangweb/evening/src/controller/evening_voter_controller.erl"},{line,23}
Check line 23 of your evening_voter_controller.erl file
------------------ 原始邮件 ------------------
发件人: "Phang Mulianto";<brav...@gmail.com>;发送时间: 2016年10月28日(星期五) 下午4:58
收件人: "ChicagoBoss"<chicagoboss@googlegroups.com>;
Hi,
This line in the error message:
{noproc,{gen_server,call,
[{global,boss_news},
Means that the boss_news server is not started.
I thought boss_news should be started by default, but I don't know. You might need to e ensure it's started during application startup.
-Jesse
To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/chicagoboss.
To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/3f1447de-24a9-4c1e-ae6a-48f25098b763%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/chicagoboss.
To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/020b82e0-3e24-4b28-b1ee-22de702240e9%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/020b82e0-3e24-4b28-b1ee-22de702240e9%40googlegroups.com.