Punjab + Strophe - Echobot works with Gmail credentials, not with ejabberd credentials

24 views
Skip to first unread message

Alex Clemesha

unread,
Oct 23, 2008, 3:28:37 AM10/23/08
to Punjab
Hi,

I'm just getting going with Punjab and Strophe. I have been playing
with the examples and looking at the code some. I have the EchoBot
example working nicely with my Gmail credentials, which is cool.

Now I'm trying to do thing same thing with a user that I have created
in my local ejabberd server,
(I have tested that I can do other normal XMMP stuff with this user -
regular chatting, etc).

This doesn't seem to be working yet. Basically, I see the following
logged message:


008/10/23 07:30 +0000 [HTTPChannel,3,137.110.115.67] Starting factory
<punjab.session.Session instance at 0x84eb98c>
2008/10/23 07:30 +0000 [twisted.names.dns.DNSDatagramProtocol (UDP)]
<punjab.session.XMPPClientConnector instance at 0x84ebdec> will retry
in 3 seconds
2008/10/23 07:30 +0000 [twisted.names.dns.DNSDatagramProtocol (UDP)]
Stopping factory <punjab.session.Session instance at 0x84eb98c>
2008/10/23 07:30 +0000 [-] Starting factory <punjab.session.Session
instance at 0x84eb98c>
2008/10/23 07:30 +0000 [twisted.names.dns.DNSDatagramProtocol (UDP)]
<punjab.session.XMPPClientConnector instance at 0x84ebdec> will retry
in 9 seconds
2008/10/23 07:30 +0000 [twisted.names.dns.DNSDatagramProtocol (UDP)]
Stopping factory <punjab.session.Session instance at 0x84eb98c>
2008/10/23 07:30 +0000 [-] Starting factory <punjab.session.Session
instance at 0x84eb98c>
2008/10/23 07:30 +0000 [twisted.names.dns.DNSDatagramProtocol (UDP)]
Abandoning <punjab.session.XMPPClientConnector instance at 0x84ebdec>
after 3 retries.
2008/10/23 07:30 +0000 [twisted.names.dns.DNSDatagramProtocol (UDP)]
Stopping factory <punjab.session.Session instance at 0x84eb98c>
2008/10/23 07:30 +0000 [-] ==================================
d34f8fb7a23456e72ceab9a5abdf9b9b 1224747045.51 startup timeout
==================================
2008/10/23 07:30 +0000 [-] HTTPB Error 200
2008/10/23 07:30 +0000 [-] HTTPB Return Error: 200 -> <body
xmlns='http://jabber.org/protocol/httpbind' type='terminate'
condition='remote-connection-failed'/>

Any thoughts or things I can try to debug? I'm happy to dive into the
code, as I'm a big fan of Twisted,
but pointers on where to look would be great.

Thanks for any advice,
-Alex

Christopher Zorn

unread,
Oct 23, 2008, 8:51:11 AM10/23/08
to punja...@googlegroups.com
On Thu, Oct 23, 2008 at 3:28 AM, Alex Clemesha <clem...@gmail.com> wrote:

Hi,

I'm just getting going with Punjab and Strophe.  I have been playing
with the examples and looking at the code some.  I have the EchoBot
example working nicely with my Gmail credentials, which is cool.

Great! Thanks for trying it out.
 

This looks like a DNS issue.

There is a bug with using localhost.  http://code.stanziq.com/punjab/ticket/11

There are work arounds like using the route attribute when creating a session.

If it is not localhost then there may be another bug.



 

kang xinyong

unread,
Jul 4, 2012, 5:08:15 AM7/4/12
to punja...@googlegroups.com
Hi, I want to know how to config punjab to connected google talk. thank you.
Reply all
Reply to author
Forward
0 new messages