Not logged in. · Lost password · Register
Forum: MatriX and XmppDotNet RSS
Avatar
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
Hello,

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." + "xxxx-test.m.in-app.io");
  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="pubsub.xxxxx-test.m.in-app.io" xmlns="jabber:client">
  2.  <pubsub xmlns="http://jabber.org/protocol/pubsub">
  3.     <create node="test" />
  4.     <configure />
  5.  </pubsub>
  6. </iq>
  7. Receive :<stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="xxxxx.m.in-app.io" version="1.0" >
  8. <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" id="245124085" from="xxxxx.m.in-app.io" xml:lang="en" >
  9. <stream:error xmlns:stream="http://etherx.jabber.org/streams">
  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?

Thanks,
This post was edited 3 times, last on 2015-02-05, 15:40 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4449 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?
https://gitlab.com/matrix-xmpp/samples/tree/master/csharp/…

Alex
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: