You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am trying to include escalus in my erlang app which is trying to send and receive a small message.
Here's what I have done:
application:ensure_all_started(escalus), {ok,Config} = file:consult("priv/escalus.config"), CarolSpec = escalus_users:get_options(Config, carol), Carol = escalus_connection:start(CarolSpec),
But it is failing with ** Reason for termination == ** {{badmatch,{error,"XML or text declaration not at start of entity"}}, [{escalus_bosh,handle_info,2, [{file,"/home/shobhit/escalus/escalus/_build/default/lib/escalus/src/escalus_bosh.erl"}, {line,414}]}, {gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,601}]}, {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,667}]}, {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]} ** exception exit: {badmatch,{error,"XML or text declaration not at start of entity"}} in function escalus_bosh:handle_info/2 (/home/shobhit/escalus/escalus/_build/default/lib/escalus/src/escalus_bosh.erl, line 414) in call from gen_server:try_dispatch/4 (gen_server.erl, line 601) in call from gen_server:handle_msg/5 (gen_server.erl, line 667) in call from proc_lib:init_p_do_apply/3 (proc_lib.erl, line 247)
I have changed the config file to include my domain.
Any pointers would be really helpful.
Hello,
I am trying to include escalus in my erlang app which is trying to send and receive a small message.
Here's what I have done:
application:ensure_all_started(escalus), {ok,Config} = file:consult("priv/escalus.config"), CarolSpec = escalus_users:get_options(Config, carol), Carol = escalus_connection:start(CarolSpec),
But it is failing with
** Reason for termination == ** {{badmatch,{error,"XML or text declaration not at start of entity"}}, [{escalus_bosh,handle_info,2, [{file,"/home/shobhit/escalus/escalus/_build/default/lib/escalus/src/escalus_bosh.erl"}, {line,414}]}, {gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,601}]}, {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,667}]}, {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]} ** exception exit: {badmatch,{error,"XML or text declaration not at start of entity"}} in function escalus_bosh:handle_info/2 (/home/shobhit/escalus/escalus/_build/default/lib/escalus/src/escalus_bosh.erl, line 414) in call from gen_server:try_dispatch/4 (gen_server.erl, line 601) in call from gen_server:handle_msg/5 (gen_server.erl, line 667) in call from proc_lib:init_p_do_apply/3 (proc_lib.erl, line 247)
I have changed the config file to include my domain.
Any pointers would be really helpful.
Thanks
Config file:
{ejabberd_node, '[email protected]'}.
{ejabberd_cookie, ejabberd}.
{ejabberd_domain, <<"domain.com">>}.
{escalus_users, [
{alice, [
{username, <<"alice">>},
{server, <<"localhost">>},
{password, <<"makota">>},
{compression, <<"zlib">>}]},
{carol, [
{username, <<"carol">>},
{server, <<"domain.com">>},
{password, <<"jinglebells">>},
{transport, escalus_bosh},
{path, <<"/http-bind">>},
{port, 5280}]}
]}.
The text was updated successfully, but these errors were encountered: