BLANK resposta para presença e status de usuário on-line

1
  • Chat Client: ConverseJS que usa internamente o StropheJS
  • Servidor de bate-papo: última versão do Ejabberd
  • Chat consumido em: Site do NodeBB.

Para dar uma idéia do problema, estou fazendo o Connection to XMPP do código do lado do servidor e passando JID, SID e RID para o client, de onde eu uso prebind / keepalive para true e conecto ao Chat passando JID, SID e RID. A conexão acontece com sucesso. No entanto, quando a lista de bate-papo é carregada, não vejo os usuários ONLINE (mesmo que eles estejam online), No Images set (mesmo quando os usuários têm suas fotos definidas). Quando olho para o Fiddler para resolver esse problema, descubro o motivo pelo qual a segunda resposta ao XMPP, que obtém os detalhes do usuário como presença, as informações do vcard é BLANK. No entanto, não consigo entender o motivo de ter uma resposta BLANK. Você pode me dizer por que é assim?

A seguir, a resposta da solicitação que eu capturei pelo Fiddler:

POST http://ejabberd_ip/http-bind HTTP/1.1

Host: ejabberd_ip
Connection: keep-alive
Content-Length: 2184
Origin: http://community.dev.domain.com
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36
Content-Type: text/plain;charset=UTF-8
Accept: */*
Referer: http://community.dev.domain.com/
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8

<body rid='8605' xmlns='http://jabber.org/protocol/httpbind' sid='be3fa0fed7d04129287e665054473449d483cb66'><iq from='[email protected]/570202950143115659771440' to='conference.domain.com' type='get' xmlns='jabber:client' id='6:sendIQ'><query xmlns='http://jabber.org/protocol/disco#info'/></iq><iq from='[email protected]/570202950143115659771440' to='pubsub.domain.com' type='get' xmlns='jabber:client' id='7:sendIQ'><query xmlns='http://jabber.org/protocol/disco#info'/></iq><iq from='[email protected]/570202950143115659771440' to='vjud.domain.com' type='get' xmlns='jabber:client' id='8:sendIQ'><query xmlns='http://jabber.org/protocol/disco#info'/></iq><iq type='get' to='[email protected]' xmlns='jabber:client' id='9:sendIQ'><vCard xmlns='vcard-temp'/></iq><iq type='get' to='[email protected]' xmlns='jabber:client' id='10:sendIQ'><vCard xmlns='vcard-temp'/></iq><iq type='get' to='[email protected]' xmlns='jabber:client' id='11:sendIQ'><vCard xmlns='vcard-temp'/></iq><iq type='get' to='[email protected]' xmlns='jabber:client' id='12:sendIQ'><vCard xmlns='vcard-temp'/></iq><iq type='get' to='[email protected]' xmlns='jabber:client' id='13:sendIQ'><vCard xmlns='vcard-temp'/></iq><iq type='get' to='[email protected]' xmlns='jabber:client' id='14:sendIQ'><vCard xmlns='vcard-temp'/></iq><iq type='get' to='[email protected]' xmlns='jabber:client' id='15:sendIQ'><vCard xmlns='vcard-temp'/></iq><presence xmlns='jabber:client'/><iq from='[email protected]/570202950143115659771440' to='conference.domain.com' type='get' xmlns='jabber:client' id='16:sendIQ'><query xmlns='http://jabber.org/protocol/disco#info'/></iq><iq from='[email protected]/570202950143115659771440' to='pubsub.domain.com' type='get' xmlns='jabber:client' id='17:sendIQ'><query xmlns='http://jabber.org/protocol/disco#info'/></iq><iq from='[email protected]/570202950143115659771440' to='vjud.domain.com' type='get' xmlns='jabber:client' id='18:sendIQ'><query xmlns='http://jabber.org/protocol/disco#info'/></iq></body>


RESPONSE FOR 2nd request is BLANK : 
===================================
HTTP/1.1 200 OK
Server: nginx/1.4.6 (Ubuntu)
Date: Thu, 07 May 2015 16:21:06 GMT
Content-Type: text/xml; charset=utf-8
Content-Length: 51
Connection: keep-alive
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Content-Type

<body xmlns='http://jabber.org/protocol/httpbind'/>
    
por Gauri Padbidri 08.05.2015 / 10:27

0 respostas