Looks like it chokes on empty avatarHash. base64 string is a None
object. And log message right above the exception shows this:

[2010-07-30 10:31:38] INFO :: vsviri...@jabber.exceede.com ::  ::
sendPresence :: Session :: {'status': '', 'show': None, 'self':
'instance', 'fro': 'msn.jab
ber.exceede.com', 'avatarHash': None, 'ptype': None, 'priority': None,
'to': u'vsviri...@jabber.exceede.com', 'nickname': u'Vasili Sviridov',
'payload': []}

[2010-07-30 10:31:38] Bad base64 {None} <-- I've added the
log.msg("Bad base64 {%s}" % s) right before raise, to see what's
causing it to barf.

[2010-07-30 10:31:38] Traceback (most recent call last):
          File "/usr/lib/python2.4/site-packages/Twisted-8.0.1-py2.4-
linux-i686.egg/twisted/python/log.py", line 51, in callWithLogger
            return callWithContext({"system": lp}, func, *args, **kw)
          File "/usr/lib/python2.4/site-packages/Twisted-8.0.1-py2.4-
linux-i686.egg/twisted/python/log.py", line 36, in callWithContext
            return context.call({ILogContext: newCtx}, func, *args,
**kw)
          File "/usr/lib/python2.4/site-packages/Twisted-8.0.1-py2.4-
linux-i686.egg/twisted/python/context.py", line 59, in callWithContext
            return self.currentContext().callWithContext(ctx, func,
*args, **kw)
          File "/usr/lib/python2.4/site-packages/Twisted-8.0.1-py2.4-
linux-i686.egg/twisted/python/context.py", line 37, in callWithContext
            return func(*args,**kw)
        --- <exception caught here> ---
          File "/usr/lib/python2.4/site-packages/Twisted-8.0.1-py2.4-
linux-i686.egg/twisted/internet/selectreactor.py", line 146, in
_doReadOrWrite
            why = getattr(selectable, method)()
          File "/usr/lib/python2.4/site-packages/Twisted-8.0.1-py2.4-
linux-i686.egg/twisted/internet/tcp.py", line 362, in doRead
            return self.protocol.dataReceived(data)
          File "/usr/lib/python2.4/site-packages/Twisted-8.0.1-py2.4-
linux-i686.egg/twisted/protocols/basic.py", line 231, in dataReceived
            why = self.lineReceived(line)
          File "/opt/software/j-components/MSN/src/legacy/msn/msn.py",
line 825, in lineReceived
            try: handler(params.split(' '))
          File "/opt/software/j-components/MSN/src/legacy/msn/msn.py",
line 1145, in handle_ILN
            self.handleAvatarHelper(msnContact, params[5])
          File "/opt/software/j-components/MSN/src/legacy/msn/msn.py",
line 1162, in handleAvatarHelper
            self.contactAvatarChanged(msnContact.userHandle,
binascii.hexlify(b64dec(msnContact.msnobj.sha1d)))
          File "/opt/software/j-components/MSN/src/legacy/msn/msn.py",
line 219, in b64dec
            raise ValueError("Got some very bad base64! :")
        exceptions.ValueError: Got some very bad base64! :

So there's empty payload and empty avatarHash. In all other places
empty avatarHash is shown as '', which is at least a string.

On Jul 30, 9:49 am, Vasili Sviridov <vsviri...@gmail.com> wrote:
> http://vasili.sviridov.ca/updated.log
>
> On Jul 30, 6:05 am, Norman Rasmussen <nor...@rasmussen.co.za> wrote:
>
> > Please enable MSNP2PDEBUG in src/legacy/msn/msn.py, and paste the
> > debug output from "Updated MSNObject received"
>
> > 2010/7/29 Arnaud Abélard <arnaud.abel...@univ-nantes.fr>:
>
> > > We are also having the same problem here. Also with the current tip from
> > > hg.. looks like Microsoft changed something on their server...
>
> > > Arnaud
>
> > > On 07/28/2010 06:19 PM, Vasili Sviridov wrote:
>
> > >> Recently my MSN connection started crashing with following error:
>
> > >> [2010-07-28 09:13:00] Traceback (most recent call last):
> > >>           File "/usr/lib/python2.4/site-packages/Twisted-8.0.1-py2.4-
> > >> linux-i686.egg/twisted/python/log.py", line 51, in callWithLogger
> > >>             return callWithContext({"system": lp}, func, *args, **kw)
> > >>           File "/usr/lib/python2.4/site-packages/Twisted-8.0.1-py2.4-
> > >> linux-i686.egg/twisted/python/log.py", line 36, in callWithContext
> > >>             return context.call({ILogContext: newCtx}, func, *args,
> > >> **kw)
> > >>           File "/usr/lib/python2.4/site-packages/Twisted-8.0.1-py2.4-
> > >> linux-i686.egg/twisted/python/context.py", line 59, in callWithContext
> > >>             return self.currentContext().callWithContext(ctx, func,
> > >> *args, **kw)
> > >>           File "/usr/lib/python2.4/site-packages/Twisted-8.0.1-py2.4-
> > >> linux-i686.egg/twisted/python/context.py", line 37, in callWithContext
> > >>             return func(*args,**kw)
> > >>         ---<exception caught here>  ---
> > >>           File "/usr/lib/python2.4/site-packages/Twisted-8.0.1-py2.4-
> > >> linux-i686.egg/twisted/internet/selectreactor.py", line 146, in
> > >> _doReadOrWrite
> > >>             why = getattr(selectable, method)()
> > >>           File "/usr/lib/python2.4/site-packages/Twisted-8.0.1-py2.4-
> > >> linux-i686.egg/twisted/internet/tcp.py", line 362, in doRead
> > >>             return self.protocol.dataReceived(data)
> > >>           File "/usr/lib/python2.4/site-packages/Twisted-8.0.1-py2.4-
> > >> linux-i686.egg/twisted/protocols/basic.py", line 239, in dataReceived
> > >>             return self.rawDataReceived(data)
> > >>           File "/opt/software/j-components/MSN/src/legacy/msn/msn.py",
> > >> line 848, in rawDataReceived
> > >>             self.setLineMode(extra)
> > >>           File "/usr/lib/python2.4/site-packages/Twisted-8.0.1-py2.4-
> > >> linux-i686.egg/twisted/protocols/basic.py", line 254, in setLineMode
> > >>             return self.dataReceived(extra)
> > >>           File "/usr/lib/python2.4/site-packages/Twisted-8.0.1-py2.4-
> > >> linux-i686.egg/twisted/protocols/basic.py", line 239, in dataReceived
> > >>             return self.rawDataReceived(data)
> > >>           File "/opt/software/j-components/MSN/src/legacy/msn/msn.py",
> > >> line 848, in rawDataReceived
> > >>             self.setLineMode(extra)
> > >>           File "/usr/lib/python2.4/site-packages/Twisted-8.0.1-py2.4-
> > >> linux-i686.egg/twisted/protocols/basic.py", line 254, in setLineMode
> > >>             return self.dataReceived(extra)
> > >>           File "/usr/lib/python2.4/site-packages/Twisted-8.0.1-py2.4-
> > >> linux-i686.egg/twisted/protocols/basic.py", line 239, in dataReceived
> > >>             return self.rawDataReceived(data)
> > >>           File "/opt/software/j-components/MSN/src/legacy/msn/msn.py",
> > >> line 848, in rawDataReceived
> > >>             self.setLineMode(extra)
> > >>           File "/usr/lib/python2.4/site-packages/Twisted-8.0.1-py2.4-
> > >> linux-i686.egg/twisted/protocols/basic.py", line 254, in setLineMode
> > >>             return self.dataReceived(extra)
> > >>           File "/usr/lib/python2.4/site-packages/Twisted-8.0.1-py2.4-
> > >> linux-i686.egg/twisted/protocols/basic.py", line 231, in dataReceived
> > >>             why = self.lineReceived(line)
> > >>           File "/opt/software/j-components/MSN/src/legacy/msn/msn.py",
> > >> line 824, in lineReceived
> > >>             try: handler(params.split(' '))
> > >>           File "/opt/software/j-components/MSN/src/legacy/msn/msn.py",
> > >> line 1144, in handle_ILN
> > >>             self.handleAvatarHelper(msnContact, params[5])
> > >>           File "/opt/software/j-components/MSN/src/legacy/msn/msn.py",
> > >> line 1161, in handleAvatarHelper
> > >>             self.contactAvatarChanged(msnContact.userHandle,
> > >> binascii.hexlify(b64dec(msnContact.msnobj.sha1d)))
> > >>           File "/opt/software/j-components/MSN/src/legacy/msn/msn.py",
> > >> line 218, in b64dec
> > >>             raise ValueError("Got some very bad base64!")
> > >>         exceptions.ValueError: Got some very bad base64!
>
> > >> I've updated all codebase to the current tip from hg.
> > >> When I go online it loads a few contacts in the roster and then logs
> > >> out with the error message...
>
> > > --
> > > Arnaud Abélard (jabber: arnaud.abel...@univ-nantes.fr)
> > > Administrateur Système - Responsable Services Web
> > > Direction des Systèmes d'Informations
> > > Université de Nantes
> > > -
> > > ne pas utiliser: trapem...@univ-nantes.fr
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "py-transports" group.
> > > To post to this group, send email to py-transpo...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > py-transports+unsubscr...@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/py-transports?hl=en.
>
> > --
> > - Norman Rasmussen
> >  - Email: nor...@rasmussen.co.za
> >  - Home page:http://norman.rasmussen.co.za/

-- 
You received this message because you are subscribed to the Google Groups 
"py-transports" group.
To post to this group, send email to py-transpo...@googlegroups.com.
To unsubscribe from this group, send email to 
py-transports+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/py-transports?hl=en.

Reply via email to