Can't connect to gtalk with python and xmpppy [closed]

帅比萌擦擦* 提交于 2020-01-16 08:50:32

问题


When try connect to gtalk I get this error:

An error occurred while looking up _xmpp-client._tcp.talk.google.com

The code is here: https://gist.github.com/1396074


回答1:


Do not pass the (incorrect) server name into cl.connect() on line 11. The SRV lookup will go to _xmpp-client._tcp.gmail.com then (taken from the JID), which should work. Passing in a server is only used for incorrectly configured XMPP servers.



来源:https://stackoverflow.com/questions/8280727/cant-connect-to-gtalk-with-python-and-xmpppy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!