Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/users/nonexisting and /vhosts/nonexisting crashes #24

Open
amr opened this issue May 2, 2010 · 0 comments
Open

/users/nonexisting and /vhosts/nonexisting crashes #24

amr opened this issue May 2, 2010 · 0 comments

Comments

@amr
Copy link
Contributor

amr commented May 2, 2010

$ curl -i "http://localhost:9999/users/nonexisting" returns: "curl: (52) Empty reply from server"

And the following error in Alice shell:

(alice@pipeline)1> Error: {function_clause,
[{mochijson2,'-json_encode_proplist/2-fun-0-',
[{ok,400,[],{"nonexisting",<<"not a user">>}},
"{",
{encoder,null,false}]},
{lists,foldl,3},
{mochijson2,json_encode_proplist,2},
{rest_server,jsonify,1},
{rest_server,run_controller,4},
{mochiweb_http,headers,5},
{proc_lib,init_p_do_apply,3}]}

=CRASH REPORT==== 3-May-2010::00:51:02 ===
crasher:
initial call: mochiweb_socket_server:acceptor_loop/1
pid: <0.147.0>
registered_name: []
exception error: bad argument
in function iolist_size/1
called as iolist_size({ok,400,[],{"nonexisting",<<"not a user">>}})
in call from mochiweb_request:respond/2
in call from mochiweb_http:headers/5
ancestors: [mochiweb_http,rest_server,rest_server_sup,<0.59.0>,<0.58.0>]
messages: []
links: [<0.70.0>,#Port<0.892>]
dictionary: []
trap_exit: false
status: running
heap_size: 987
stack_size: 24
reductions: 888
neighbours:

=ERROR REPORT==== 3-May-2010::00:51:02 ===
{mochiweb_socket_server,235,{child_error,badarg}}

An identical behavior can be seen with /vhosts/nonexisting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant