[ejabberd] bosh xml-not-well-formed

Bellan Saravanan sarbx at hotmail.com
Mon Mar 17 11:55:52 MSK 2014


I'm trying to find the difference in using the two xmpp js libraries strophe and stanza.io,
With Strohpe everything works fine and this is what I see in the ejabberd log,








=INFO REPORT==== 2014-03-17 07:15:13 ===
D(<0.591.0>:mod_http_bind:69) : Incoming data: <body rid='984820457' xmlns='http://jabber.org/protocol/httpbind' sid='7cfd532489a59959bfe6a5cef579ba1403f8cfa6'><presence xmlns='jabber:client'/><message to='bsarva at precise32' type='chat' xmlns='jabber:client'><body>hello</body></message></body>


=INFO REPORT==== 2014-03-17 07:15:13 ===
D(<0.591.0>:ejabberd_http_bind:1128) : --- incoming data ---
<body rid='984820457' xmlns='http://jabber.org/protocol/httpbind' sid='7cfd532489a59959bfe6a5cef579ba1403f8cfa6'><presence xmlns='jabber:client'/><message to='bsarva at precise32' type='chat' xmlns='jabber:client'><body>hello</body></message></body>
 --- END ---

With Stanza.io, I get xml-not-well-formed error,
These are the packets I see in the log,








=INFO REPORT==== 2014-03-17 07:51:40 ===D(<0.619.0>:mod_http_bind:69) : Incoming data: <body xmlns="http://jabber.org/protocol/httpbind" xmlns:xmpp="urn:xmpp:xbosh" rid="199982875" sid="47c624ccdada4c705fcac9d6a42072187b3d21ef"><presence xmlns="jabber:client" id="5ceab57b-be84-47d3-9c49-227b32eae113"></presence><message xmlns="jabber:client" to="bsarva at precise32" type="chat" id="2762ded6-b602-472b-a86a-359ab33a9f3e"><body>Hello</body></message></body>
=INFO REPORT==== 2014-03-17 07:51:40 ===D(<0.619.0>:ejabberd_http_bind:1128) : --- incoming data ---<body xmlns="http://jabber.org/protocol/httpbind" xmlns:xmpp="urn:xmpp:xbosh" rid="199982875" sid="47c624ccdada4c705fcac9d6a42072187b3d21ef"><presence xmlns="jabber:client" id="5ceab57b-be84-47d3-9c49-227b32eae113"></presence><message xmlns="jabber:client" to="bsarva at precise32" type="chat" id="2762ded6-b602-472b-a86a-359ab33a9f3e"><body>Hello</body></message></body>













 --- END ---


............=INFO REPORT==== 2014-03-17 07:51:40 ===D(<0.620.0>:ejabberd_http_bind:732) : really sending now: [{xmlelement,                                                            "presence",                                                            [{"xmlns",                                                              "jabber:client"},                                                             {"id",                                                              "5ceab57b-be84-47d3-9c49-227b32eae113"}],                                                            []},                                                           {xmlelement,                                                            "message",                                                            [{"xmlns",                                                              "jabber:client"},                                                             {"to",                                                              "bsarva at precise32"},                                                             {"type","chat"},                                                             {"id",                                                              "2762ded6-b602-472b-a86a-359ab33a9f3e"}],                                                            [{xmlelement,                                                              "body",[],                                                              [{xmlcdata,                                                                <<"Hello">>}]}]}]
=INFO REPORT==== 2014-03-17 07:51:40 ===D(<0.622.0>:ejabberd_http_bind:916) : OutPacket: [{xmlstreamelement,                                                   {xmlelement,                                                    "stream:error",[],                                                    [{xmlelement,                                                      "xml-not-well-formed",                                                      [{"xmlns",                                                        "urn:ietf:params:xml:ns:xmpp-streams"}],





































                                                      []}]}}]
The only differences I see are is in the use of single/double quotes, presence of id attribute. 
Please help 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20140317/0d51eb43/attachment.html>


More information about the ejabberd mailing list