[JDEV] Top-level <error> element is undocumented
Keith Minkler
kminkler at jabber.com
Wed Apr 25 19:28:47 CDT 2001
Jens,
Could this have been a <stream:error> tag, and not an <error> tag?
the server will send <stream:error>Error Message</stream:error> when
you do bad things like sending invalid XML.. I don't really know if
this tag is documented anywhere, but it only contains CDATA, the text
of the error message, and only for errors that relate directly to the
XML stream itself.. which doesn't have to do with the jabber protocol
really..
Hope this helps!
Keith Minkler
On Thu, Apr 05, 2001 at 10:45:19AM -0700, Jens Alfke wrote:
> One one attempted login to jabber.org, my embryonic client received
> an <error> element from the server as a direct child (the first) of the
> <stream> element. My parser didn't know what to do with it. This was
> several bug-fixes ago and I believe my client had not sent the
> jabber:iq:auth element correctly, which would explain why the server
> was sending me an error. But I need to know how to parse the error in
> case this happens again!
>
> Neither the JPO nor the JPG describe such an element nor what its
> contents might be. (They only discuss <error> as a child of <presence>,
> <message> or <iq>.) The only place I've seen it mentioned at all is in
> the XML Streams DTD in section 5.1 of the JPG; but this DTD appears to
> be truncated and doesn't describe anything about the element other than
> its existence.
>
> Unfortunately I wasn't capturing the XML to a file and I haven't been
> able to reproduce this state, so I don't know the actual contents of
> the <error> the server sent.
>
> Can anyone elaborate? For now I'm going to go on the hunch that its
> contents are the same as the regular <error> element nested in <iq>
> etc.
>
> Peter and Thomas, you might take this as an action item to add a
> description of this element to the docs.
>
> ?Jens
>
Keith Minkler
-------
Software Developer
Jabber.COM, Inc.
-------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <https://www.jabber.org/jdev/attachments/20010425/f004cc5c/attachment-0002.pgp>
More information about the JDev
mailing list