fritzy / SleekXMPP

Python 2.6+/3.1+ XMPP Library
http://groups.google.com/group/sleekxmpp-discussion
Other
1.1k stars 299 forks source link

Error reading from XML stream after 'no_auth' event #139

Closed rhcarvalho closed 12 years ago

rhcarvalho commented 12 years ago

If we try to login with an invalid jid/password, ClientXMPP will try all mechanisms and eventually fail:

sleekxmpp/features/feature_mechanisms/mechanisms.py:129
ERROR    No appropriate login method.
sleekxmpp/xmlstream/xmlstream.py:1192
ERROR    Error reading from XML stream.

The second error line is unexpected.

Using current HEAD from the development branch (25f87607aab0de024be90d6e6d0e96c19e827f49).

legastero commented 12 years ago

This is expected since Google simply terminates the stream without sending a closing </stream> tag.

rhcarvalho commented 12 years ago

Ok, right. I should have said "I didn't expect the second error line".