Not logged in. · Lost password · Register
Forum: MatriX and XmppDotNet RSS
Avatar
matevarga #1
Member since Aug 2013 · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: A 'to' attribute is required on stream headers
Hi,

I'm trying to connect to a Prosody XMPP server (most recent version). The connection fails and Prosody complains that there's a missing attribute on the request header. RFC3920 says:
"
   o  to -- The 'to' attribute SHOULD be used only in the XML stream
      header from the initiating entity to the receiving entity, and
      MUST be set to a hostname serviced by the receiving entity"

Am I missing something? I set the hostname, user and password before calling xmppClientInstanceName.Open().


2013-08-02 19:09:17.283 app[3951:c07] [Sent] <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" version="1.0" >
2013-08-02 19:09:17.340 app[3951:c07] [Received] <stream:stream xmlns:stream="http://etherx.jabber.org/streams" version="1.0" xmlns="jabber:client" >
2013-08-02 19:09:17.344 app[3951:c07] [Received] <stream:error xmlns:stream="http://etherx.jabber.org/streams">
  <improper-addressing xmlns="urn:ietf:params:xml:ns:xmpp-streams" />
  <text xmlns="urn:ietf:params:xml:ns:xmpp-streams">A 'to' attribute is required on stream headers</text>
</stream:error>
2013-08-02 19:09:17.345 app[3951:c07] [Sent] </stream:stream>
2013-08-02 19:09:17.346 app[3951:c07] [Received] </stream:stream>
Avatar
matevarga #2
Member since Aug 2013 · 2 posts
Group memberships: Members
Show profile · Link to this post
Oops, forgot to set the XmppDomain property. It works now, thanks.
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: