Command:
curl -H POST -d @file localhost:8001/action

controller is:
index('POST', []) ->
  ok.

I ger error:
04:17:14.974 [error] gen_server <0.282.0> terminated with reason: bad 
argument in call to erlang:list_to_atom(undefined) in 
boss_router_controller:route/2 line 174

This line is 
ControllerModule = list_to_atom(boss_files:web_controller(App, C, 
State#state.controllers)),

and this: boss_files:web_controller(App, C, State#state.controllers)
actually return undefined

Any idea how to fix it?
Thanks

-- 
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/8c20f826-27c5-487d-bbbe-9bd3c3d70fbc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to