librelist archives

« back to archive

Fw: all contacts appears as offline when using prebind with php

Fw: all contacts appears as offline when using prebind with php

From:
Ankit Bhootra
Date:
2014-03-12 @ 06:51
 

Hello sir,

 

I have set prebind to true and using php xmpp prebind class to get sid,rid
and jid. The problem is that, all my contacts listed properly but contacts
are listed as offline. even the contacts are online.

 

I am using version "converse.js-0.7.3".

 

Getting this response

<body xmlns='http://jabber.org/protocol/httpbind'><iq xmlns='jabber:client'
to='agrydchat.com/d841cbe1' type='error' id='515:roster'><query
xmlns='jabber:iq:roster'/><error code='401' type='auth'><not-authorized
xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></iq></body>

 

I think it have the problem of missing of node identifier in to attribute of
stanza.but I don't know how to fix it. And why its not having node
identifier.

 

                                                Waiting for your reply.

 

thanks

Ankit Bhootra

 

 

Re: [conversejs] FW: all contacts appears as offline when using prebind with php

From:
Jc Brand
Date:
2014-03-13 @ 02:56
On Wed, Mar 12, 2014 at 12:21:22PM +0530, Ankit Bhootra wrote:
>    I have set prebind to true and using php xmpp prebind class to get sid,rid
>    and jid. The problem is that, all my contacts listed properly but contacts
>    are listed as offline. even the contacts are online.
> 
>    I am using version "converse.js-0.7.3".
> 
>    Getting this response
> 
>    <body xmlns='http://jabber.org/protocol/httpbind'><iq
>    xmlns='jabber:client' to='agrydchat.com/d841cbe1' type='error'
>    id='515:roster'><query xmlns='jabber:iq:roster'/><error code='401'
>    type='auth'><not-authorized
>    xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></iq></body>

You get a 401 Authenticated error which says you are not authorized.

I think you're probably getting the wrong RID or SID from your PHP XMPP prebind
code.

Does this happen immediately upon first page load, or only after you 
reload the page?

Clear your browser cache and localStorage and then check again. Check to see if
you still see your contacts listed. I think they won't appear this time and
only appeared before because they were in your cache.

What XMPP server are you using?  Tail the log of your XMPP server and see what
it logs around the same time you get the above response in the browser.

Fw: all contacts appears as offline when using prebind with php

From:
Ankit Bhootra
Date:
2014-03-12 @ 08:11
 

 

From: Ankit Bhootra [mailto:ankit@squarebits.in] 
Sent: Wednesday, March 12, 2014 12:21 PM
To: 'conversejs@librelist.com'
Subject: FW: all contacts appears as offline when using prebind with php

 

 

Hello sir,

 

I have set prebind to true and using php xmpp prebind class to get sid,rid
and jid. The problem is that, all my contacts listed properly but contacts
are listed as offline. even the contacts are online.

 

I am using version "converse.js-0.7.3".

 

Getting this response

<body xmlns='http://jabber.org/protocol/httpbind'><iq xmlns='jabber:client'
to='agrydchat.com/d841cbe1' type='error' id='515:roster'><query
xmlns='jabber:iq:roster'/><error code='401' type='auth'><not-authorized
xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></iq></body>

 

I think it have the problem of missing of node identifier in to attribute of
stanza.but I don't know how to fix it. And why its not having node
identifier.

 

                                                Waiting for your reply.

 

thanks

Ankit Bhootra