beepbeep
beepbeep copied to clipboard
Application broke and not working when beepbeep_args:get_param is called
I tried small example with latest code ewgi enabled beepbeep. But I am not able run it.
It is broke when there is a call to beepbeep_args:get_param. It is simple to reproduce
- Create a new beepbeep app
- open home_controller.erl and add
Name = beepbeep_args:get_param("name",Env), then - make
- start the server
- http://localhost:8000/?name=Senthil
It cries with =ERROR REPORT==== 11-Aug-2009::23:23:09 === function_clause
I have exactly the same problem. Any try of using beepbeep_args module gives the same error.
ok, it happens as in Env is {ewgi_context, ... } and not parameter list
getting post data with the following statement also did not work. PostData = ewgi_api:remote_user_data(Env),
Yah, I have something of a fix for this in my branch (github.com/lethain/beepbeep), although it involves populating the uri parameters via a uri_param_middleware and consequently moves beepbeep_args:get_param/2 to uri_param_middleware:get_param/2 .