The hostname is msn.jabber_server. And the jabber server's name is jabber_server. The both names can't be resolved by DNS. Is this the reason of error or = any others?
My host IP is 218.108.7.123. If necessary, You can visit it by username = james and password james, and I will send the root password to your = private email. Jabber_server is jabberd-2.0 Pymsnt version is 0.10.1 and the path is /root/pymsnt-0.10.1 Thanks. Best Regards, Bao Jianyi -----Original Message----- From: [EMAIL PROTECTED] = [mailto:[EMAIL PROTECTED] On Behalf Of James = Bunton Sent: 2005=C4=EA12=D4=C216=C8=D5 21:42 To: PyAIM-t/PyICQ-t/PyMSN-t Discussion Subject: Re: [py-transports] Exception "Invalid character in hostname" Nope. delx.cjb.net should resolve to 59.167.5.40 My IP is dynamically assigned, but it usually keeps for weeks, even =20 across PPPoE disconnections (it's ADSL). That error says "Invalid character in hostname" So what hostname are you registering from? --- James On 16/12/2005, at 6:02 PM, Bao Jianyi wrote: > > James, > Sorry, I still can't check the pymsnt out.Is your host' IP =20 > 209.220.30.174? > > But I have a new problem when I register a msn account using =20 > pymsnt transport. > Note: Exodus jabber brower can find the msn transport, and throw =20 > out the exception when exec register. > Would you please give me some idea? > > Logs: > File =20 > "/usr/local/lib/python2.4/site-packages/twisted/internet/=20 > selectreactor.py", line 133, in doSelect > _logrun(selectable, _drdw, selectable, method, dict) > File "/usr/local/lib/python2.4/site-packages/twisted/python/log.py", = =20 > line 56, in callWithLogger > return callWithContext({"system": lp}, func, *args, **kw) > File "/usr/local/lib/python2.4/site-packages/twisted/python/log.py", = =20 > line 41, in callWithContext > return context.call({ILogContext: newCtx}, func, *args, **kw) > File =20 > "/usr/local/lib/python2.4/site-packages/twisted/python/context.py", =20 > line 31, in callWithContext > return func(*args,**kw) > --- <exception caught here> --- > File =20 > "/usr/local/lib/python2.4/site-packages/twisted/internet/=20 > selectreactor.py", line 139, in _doReadOrWrite > why =3D getattr(selectable, method)() > File =20 > "/usr/local/lib/python2.4/site-packages/twisted/internet/tcp.py", line = =20 > 351, in doRead > return self.protocol.dataReceived(data) > File =20 > "/usr/local/lib/python2.4/site-packages/twisted/xish/xmlstream.py", =20 > line 145, in dataReceived > self.stream.parse(buf) > File =20 > "/usr/local/lib/python2.4/site-packages/twisted/xish/domish.py", line = > 600, in parse > self.parser.Parse(buffer) > File =20 > "/usr/local/lib/python2.4/site-packages/twisted/xish/domish.py", line = > 638, in _onEndElement > self.ElementEvent(self.currElem) > File =20 > "/usr/local/lib/python2.4/site-packages/twisted/xish/xmlstream.py", =20 > line 166, in onElement > self.dispatch(element) > File =20 > "/usr/local/lib/python2.4/site-packages/twisted/xish/utility.py", line = =20 > 233, in dispatch > callbacklist.callback(object) > File =20 > "/usr/local/lib/python2.4/site-packages/twisted/xish/utility.py", line = =20 > 37, in callback > methodwrapper(*args, **kwargs) > File =20 > "/usr/local/lib/python2.4/site-packages/twisted/xish/utility.py", line = =20 > 21, in __call__ > self.method(*nargs, **nkwargs) > File "/root/pymsnt-0.10.1/src/disco.py", line 153, in onIq > handler(el) > File "/root/pymsnt-0.10.1/src/register.py", line 69, in =20 > incomingRegisterIq > self.sendRegistrationFields(incoming) > File "/root/pymsnt-0.10.1/src/register.py", line 93, in =20 > sendRegistrationFields > result =3D self.getRegInfo(incoming.getAttribute("from")) > File "/root/pymsnt-0.10.1/src/register.py", line 50, in getRegInfo > result =3D self.pytrans.xdb.request(jid.JID(jabberID).userhost(), = > legacy.namespace) > File =20 > "/usr/local/lib/python2.4/site-packages/twisted/words/protocols/=20 > jabber/jid.py", line 104, in __init__ > user, host, res =3D parse(str) > File =20 > "/usr/local/lib/python2.4/site-packages/twisted/words/protocols/=20 > jabber/jid.py", line 47, in parse > return prep(user, server, resource) > File =20 > "/usr/local/lib/python2.4/site-packages/twisted/words/protocols/=20 > jabber/jid.py", line 66, in prep > raise InvalidFormat, "Invalid character in hostname" > twisted.words.protocols.jabber.jid.InvalidFormat: Invalid character in = =20 > hostname > > > > _______________________________________________ > py-transports mailing list > py-transports@blathersource.org > http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports _______________________________________________ py-transports mailing list py-transports@blathersource.org http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports From [EMAIL PROTECTED] Mon Dec 19 02:10:10 2005 From: [EMAIL PROTECTED] (Trejkaz) Date: Mon Dec 19 02:11:01 2005 Subject: [py-transports] Exception "Invalid character in hostname" In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> > The hostname is msn.jabber_server. > And the jabber server's name is jabber_server. > The both names can't be resolved by DNS. Is this the reason of error or > any others? Underscores are not legal in hostnames. That may explain the problem... TX