[ejabberd] Bosh error 400, bad request

jela.babic at iten.rs jela.babic at iten.rs
Wed Feb 13 19:02:14 MSK 2019


Hi,
I am using ejabberd v18.12.1 and converse.js v4.0.6. Ejabberd is 
installed on Ubuntu v16.04. In communication between them, sometimes (I 
don't know exactly when or why) comes to the bosh error 400.


POST https://messenger.com:5443/bosh/ 400 (Bad Request)

<?xml version='1.0'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<h1>400 Bad Request</h1>


At one moment, the user is successfully logged in, but sometimes this 
error happens and the user has no logged in anymore. Here is XML request 
which has been sent to the server just before that error message.
So there was successful bosh communication before this request. Does 
anyone know what was the cause of this error? Thanks for the help.

<body rid="11111"
       sid="12345"
       xmlns="http://jabber.org/protocol/httpbind">
     <iq from="me at messenger.com" 
id="93503311-2b94-4416-b6cc-e7ddfd5127a0:sendIQ" to="messenger.com" 
type="get" xmlns="jabber:client">
         <query xmlns="http://jabber.org/protocol/disco#items"/>
     </iq>
     <iq id="084c07dc-aab1-4463-9e5d-c0cde45e03cd:sendIQ" 
to="x1 at messenger.com" type="get" xmlns="jabber:client">
         <vCard xmlns="vcard-temp"/>
     </iq>
     <iq id="ed93cfd1-fede-4a35-b8de-6b0707ddb41b:sendIQ" 
to="x2 at messenger.com" type="get" xmlns="jabber:client">
         <vCard xmlns="vcard-temp"/>
     </iq>
     <iq id="52c3813d-f949-42e3-a7c3-d91784e29111:sendIQ" 
to="x3 at messenger.com" type="get" xmlns="jabber:client">
         <vCard xmlns="vcard-temp"/>
     </iq>
     <iq id="a3d5970a-13b7-459f-b461-7c24ca17abe2:sendIQ" 
to="x4 at messenger.com" type="get" xmlns="jabber:client">
         <vCard xmlns="vcard-temp"/>
     </iq>
     <iq id="b5844f31-2b5a-45a5-b5cf-04e9f6d58db4:sendIQ" 
to="x5 at messenger.com" type="get" xmlns="jabber:client">
         <vCard xmlns="vcard-temp"/>
     </iq>
     <iq id="a70bc5ba-8267-4870-87d5-416f694e6c01:sendIQ" 
to="x6 at messenger.com" type="get" xmlns="jabber:client">
         <vCard xmlns="vcard-temp"/>
     </iq>
     <iq id="b701e62c-3174-4df0-830d-3501ae4d541c:sendIQ" 
to="x7 at messenger.com" type="get" xmlns="jabber:client">
         <vCard xmlns="vcard-temp"/>
     </iq>
     <iq id="049339ad-9183-429d-b90b-4440ed7df746:sendIQ" 
to="x8 at messenger.com" type="get" xmlns="jabber:client">
         <vCard xmlns="vcard-temp"/>
     </iq>
     <iq id="d6b9f6c4-9b56-4809-bc2e-cdd33316ea96:sendIQ" 
to="x9 at messenger.com" type="get" xmlns="jabber:client">
         <vCard xmlns="vcard-temp"/>
     </iq>
     <iq from="me at messenger.com" 
id="dd6d0dfb-a742-4e4a-af5f-5d4a449862cb:sendIQ" type="get" 
xmlns="jabber:client">
         <pubsub xmlns="http://jabber.org/protocol/pubsub">
             <items node="storage:bookmarks"/>
         </pubsub>
     </iq>
</body>


More information about the ejabberd mailing list