Jajcus / pyxmpp2

XMPP implementation for Python
http://jajcus.github.com/pyxmpp2/api/
GNU Lesser General Public License v2.1
183 stars 42 forks source link

Requesting server-generated resource - Error #85

Open x011 opened 9 years ago

x011 commented 9 years ago

Any idea what's causing this connection to fail?

INFO:root:-- Resolving address of 'chat.facebook.com'... INFO:root:-- Connecting to 173.252.122.5:5222... INFO:root:-- Connected to 173.252.122.5:5222 INFO:root:-- Connected to chat.facebook.com INFO:root:-- Got stream features INFO:root:-- TLS connecting INFO:root:-- TLS connected to using ECDHE-RSA-AES128-SHA cipher TLSv1/SSLv3 (128 bits) INFO:root:-- Connected to chat.facebook.com INFO:root:-- Got stream features INFO:root:-- Authenticated: xxxxxxxxx@chat.facebook.com INFO:root:-- Connected to chat.facebook.com INFO:root:-- Got stream features INFO:root:-- Requesting server-generated resource .....15 seconds passed and then: INFO:root:-- Disconnected from ('173.252.122.5', 5222)

I'm using the send_message_client example.py Thank you.

Jajcus commented 9 years ago

On 2015-09-22 22:18, x011 wrote:

Any idea what's causing this connection to fail?

INFO:root:-- Resolving address of 'chat.facebook.com'... INFO:root:-- Connecting to 173.252.122.5:5222... INFO:root:-- Connected to 173.252.122.5:5222 INFO:root:-- Connected to chat.facebook.com INFO:root:-- Got stream features INFO:root:-- TLS connecting INFO:root:-- TLS connected to using ECDHE-RSA-AES128-SHA cipher TLSv1/SSLv3 (128 bits) INFO:root:-- Connected to chat.facebook.com INFO:root:-- Got stream features INFO:root:-- Authenticated: xxxxxxxxx@chat.facebook.com mailto:xxxxxxxxx@chat.facebook.com INFO:root:-- Connected to chat.facebook.com INFO:root:-- Got stream features INFO:root:-- Requesting server-generated resource .....15 seconds passed and then: INFO:root:-- Disconnected from ('173.252.122.5', 5222)

I'm using the send_message_client example.py Thank you.

It seems the server doesn't handle the XMPP protocol well, at least at the 'resource binding' stage.

Try providing the resource part in your jid, e.g.:

Your jid: xxxxxxxxx@chat.facebook.com/Test

Greets, Jacek