[erlang-questions] Tripped at first hurdle with XMPP echo_client

Jon Schneider jon@REDACTED
Tue May 28 14:45:06 CEST 2013


I've grabbed https://github.com/processone/exmpp , modified
echo_client.erl's start() with my credentials but got
no_supported_auth_method. See below for complete output.

Should this work ? It's a regular jabber.org account.

Jon

=ERROR REPORT==== 28-May-2013::13:07:05 ===
** State machine <0.74.0> terminating
** Last event in was {xmlstreamelement,
                         {xmlel,'jabber:client',[],iq,
                             [{xmlattr,undefined,<<"type">>,<<"result">>},
                              {xmlattr,undefined,<<"id">>,
                                  <<"auth-xxxxxxxx">>}],
                             [{xmlel,'jabber:iq:auth',
                                  [{'jabber:iq:auth',none}],
                                  query,[],
                                  [{xmlel,'jabber:iq:auth',[],username,[],
                                       [{xmlcdata,<<"my username here">>}]},
                                   {xmlel,'jabber:iq:auth',[],resource,[],[]},
                                   {xmlel,'jabber:iq:auth',[],password,[],
                                       []}]}]}}
** When State == wait_for_legacy_auth_method
**      Data  == {state,digest,
                     {{jid,<<"my user name@REDACTED/exmpp#some digits">>,
                          <<"my user name">>,<<"jabber.org">>,
                          <<"exmpp#some digits">>},
                      "my password"},
                     {0,0},
                     false,false,false,
                     [{compression,enabled},{starttls,enabled}],
                     "jabber.org","jabber.org",<0.58.0>,exmpp_socket,
                     {gen_tcp,#Port<0.3545>},
                     {xml_stream,
                         {gen_fsm,<0.74.0>},
                         {xml_parser,
                             [{max_size,infinity},
                              {root_depth,1},
                              {names_as_atom,true},
                              {emit_endtag,true},
                              {check_nss,xmpp},
                              {check_elems,xmpp}],
                             #Port<0.3467>},
                         new,false,undefined},
                     "69946f127a07be75",undefined,<0.88.0>,
                     {<0.58.0>,#Ref<0.0.0.1044>},
                     undefined,infinity}
** Reason for termination =
** {error,no_supported_auth_method}

=ERROR REPORT==== 28-May-2013::13:07:05 ===
Error in process <0.58.0> on node 'reading@REDACTED' with exit
value:
{{nocatch,{error,no_supported_auth_method}},[{exmpp_session,login,2,[{file,"./network/exmpp_session.erl"},{line,360}]},{echo_client,session,3,[{file,"echo_client.erl"},{line,63}]}]}





More information about the erlang-questions mailing list