Not logged in. · Lost password · Register
Forum: XMPP Protocol RSS
xmpp pubsub node - unsubscribtion failed and getting <error type="wait" code="400">
Avatar
rameshkasi #1
Member since Jun 2010 · 17 posts · Location: india
Group memberships: Members
Show profile · Link to this post
Subject: xmpp unsubscribe <error type="wait" code="400">
Dear Alex,

Unsubscription is failed while unsubscribing the pubsub node.Its throwing error code as 400 and type="wait".

Please find the request/response stream for better understanding.


SEND :
<iq id="agsXMPP_4" type="get" to="pubsub.testinfra.net"><pubsub xmlns="http://jabber.org/protocol/pubsub"><subscriptions /></pubsub></iq>

RECV :
<iq xmlns="jabber:client" type="result" from="pubsub.testinfra.net" to="ramesh.kasi@testinfra.net/beamon" id="agsXMPP_4"><pubsub xmlns="http://jabber.org/protocol/pubsub"><subscriptions><subscription jid="ramesh.kasi@testinfra.net" node="INFRAADMIN" subid="S0l4gRK7C8cBMJnLnhcjDNl7E08kvNucRpQ16BHs" subscription="subscribed" /><subscription jid="ramesh.kasi@testinfra.net" node="G_GIO_AMD" subid="WjLfigT5VP41Olpi6s21iUz8EhKD880fGz1PYpJ9" subscription="subscribed" /><subscription jid="ramesh.kasi@testinfra.net" node="G_GIO_BOM" subid="D10OFMJtaK9EOX59IyjdVf78uz8moImp0lh4jCQy" subscription="subscribed" /></subscriptions></pubsub></iq>

SEND :
<iq id="agsXMPP_5" type="set" to="pubsub.testinfra.net"><pubsub xmlns="http://jabber.org/protocol/pubsub"><unsubscribe node="INFRAADMIN" jid="ramesh.kasi@testinfra.net/beamon" subid="S0l4gRK7C8cBMJnLnhcjDNl7E08kvNucRpQ16BHs" /></pubsub></iq>

RECV :
<iq xmlns="jabber:client" type="error" from="pubsub.testinfra.net" to="ramesh.kasi@testinfra.net/beamon" id="agsXMPP_5"><pubsub xmlns="http://jabber.org/protocol/pubsub"><unsubscribe jid="ramesh.kasi@testinfra.net/beamon" node="INFRAADMIN" subid="S0l4gRK7C8cBMJnLnhcjDNl7E08kvNucRpQ16BHs" /></pubsub><error type="wait" code="400"><unexpected-request xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /><not-subscribed xmlns="http://jabber.org/protocol/pubsub#errors" /></error></iq>



i'm using openfire server which is expecting anything additional in the request?

Please verify the stream and suggest me to solve the problem.

Thanks
Ramesh Kasi
This post was edited on 2015-03-23, 13:29 by rameshkasi.
Avatar
Alex #2
Member since Feb 2003 · 4447 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
the problem can be the Jid.

you try to unsibscribe the full Jid ramesh.kasi@testinfra.net/beamon
In your subscriptions request the server sends the subscriptions with teh bare jid ramesh.kasi@testinfra.net
Avatar
rameshkasi #3
Member since Jun 2010 · 17 posts · Location: india
Group memberships: Members
Show profile · Link to this post
Dear Alex,

Now unsubscribe issue has been fixed with bare JID.

Thanks for your immediate reply and great support.

Regards
Ramesh Kasi
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters: