Not logged in. · Lost password · Register
Forum: MatriX RSS
cvoluter #1
Member since Jan 2015 · 14 posts
Group memberships: Members
Show profile · Link to this post
Subject: invalid-namespace error on Pub sub node creation

I'm trying to create pubsub node from independent thread:

  1. void XmppClient_OnLogin(object sender, Matrix.EventArgs e)
  2. {
  3.     System.Diagnostics.Debug.WriteLine("logged with status : " + e.State);   
  4.     CurrentPubSubManager = new PubSubManager(XmppClient);
  5.     CurrentPubSubManager.OnEvent += new EventHandler<MessageEventArgs>(PubSubManager_OnEvent);
  6.     Jid m_psJid = new Jid("pubsub." + "");
  7.     CurrentPubSubManager.CreateNode(m_psJid, "test", new EventHandler<IqEventArgs>(XmppClient_OnNodeCreationIq));
  8. }

When I try to create node, the result is failed without event  XmppClient_OnNodeCreationIq triggered.

When I log xml stream, I get this stream error (but the stream sensed appears right):

  1. Send : <iq id="MX_1" type="set" to="" xmlns="jabber:client">
  2.  <pubsub xmlns="">
  3.     <create node="test" />
  4.     <configure />
  5.  </pubsub>
  6. </iq>
  7. Receive :<stream:stream xmlns:stream="" xmlns="jabber:client" to="" version="1.0" >
  8. <stream:stream xmlns:stream="" xmlns="jabber:client" id="245124085" from="" xml:lang="en" >
  9. <stream:error xmlns:stream="">
  10.  <invalid-namespace xmlns="urn:ietf:params:xml:ns:xmpp-streams" />
  11. </stream:error>
  12. </stream:stream>

But, when I try in a sample console application, Node creation takes no problem. This error is not documented into XEP docs.

Do you know where the problem can be here?

This post was edited 3 times, last on 2015-02-05, 15:40 by Alex.
Alex #2
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Don't send it in the OnLogin event. Please wait at least until you got the OnROsterEnd event.
Better is waiting for the first OnPresence event.

Have you looked at the MiniClient example and the pubsub form?…

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:
Forum: MatriX RSS