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

Changing domain in config file causes crash #154

Open
sammyraul opened this issue Sep 27, 2017 · 2 comments
Open

Changing domain in config file causes crash #154

sammyraul opened this issue Sep 27, 2017 · 2 comments

Comments

@sammyraul
Copy link

sammyraul commented Sep 27, 2017

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}]}
]}.

@sr-sourabh
Copy link

will they fix it ?

@fenek
Copy link
Member

fenek commented Feb 18, 2018

Hi @sr-sourabh

Are you experiencing the same issue?

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

3 participants