Here are a bunch more from r226. I've cut the stuff at the top. They
all seems to be dups, but there's a different code path, so I've
copied all of them:
File "/home/norman/src/svn/PyMSNt/src/legacy/msn/msn.py",
line 819, in lineReceived
try: handler(params.split(' '))
File "/home/norman/src/svn/PyMSNt/src/legacy/msn/msn.py",
line 1139, in handle_ILN
self.handleAvatarHelper(msnContact, params[5])
File "/home/norman/src/svn/PyMSNt/src/legacy/msn/msn.py",
line 1156, in handleAvatarHelper
self.contactAvatarChanged(msnContact.userHandle,
binascii.hexlify(b64dec(msnContact.msnobj.sha1d)))
File "/home/norman/src/svn/PyMSNt/src/legacy/msn/msnw.py",
line 434, in contactAvatarChanged
LogEvent(INFO, self.factory.msncon.ident)
exceptions.AttributeError: 'NoneType' object has no attribute 'ident'
File "/home/norman/src/svn/PyMSNt/src/legacy/msn/msn.py",
line 819, in lineReceived
try: handler(params.split(' '))
File "/home/norman/src/svn/PyMSNt/src/legacy/msn/msn.py",
line 1139, in handle_ILN
self.handleAvatarHelper(msnContact, params[5])
File "/home/norman/src/svn/PyMSNt/src/legacy/msn/msn.py",
line 1156, in handleAvatarHelper
self.contactAvatarChanged(msnContact.userHandle,
binascii.hexlify(b64dec(msnContact.msnobj.sha1d)))
File "/home/norman/src/svn/PyMSNt/src/legacy/msn/msnw.py",
line 434, in contactAvatarChanged
LogEvent(INFO, self.factory.msncon.ident)
exceptions.AttributeError: 'NoneType' object has no attribute 'ident'
File "/home/norman/src/svn/PyMSNt/src/legacy/msn/msn.py",
line 819, in lineReceived
try: handler(params.split(' '))
File "/home/norman/src/svn/PyMSNt/src/legacy/msn/msn.py",
line 1142, in handle_ILN
self.gotContactStatus(params[2], params[1], unquote(params[3]))
File "/home/norman/src/svn/PyMSNt/src/legacy/msn/msnw.py",
line 438, in gotContactStatus
LogEvent(INFO, self.factory.msncon.ident)
exceptions.AttributeError: 'NoneType' object has no attribute 'ident'
File "/home/norman/src/svn/PyMSNt/src/legacy/msn/msn.py",
line 819, in lineReceived
try: handler(params.split(' '))
File "/home/norman/src/svn/PyMSNt/src/legacy/msn/msn.py",
line 1142, in handle_ILN
self.gotContactStatus(params[2], params[1], unquote(params[3]))
File "/home/norman/src/svn/PyMSNt/src/legacy/msn/msnw.py",
line 438, in gotContactStatus
LogEvent(INFO, self.factory.msncon.ident)
exceptions.AttributeError: 'NoneType' object has no attribute 'ident'
File "/home/norman/src/svn/PyMSNt/src/legacy/msn/msn.py",
line 819, in lineReceived
try: handler(params.split(' '))
File "/home/norman/src/svn/PyMSNt/src/legacy/msn/msn.py",
line 1139, in handle_ILN
self.handleAvatarHelper(msnContact, params[5])
File "/home/norman/src/svn/PyMSNt/src/legacy/msn/msn.py",
line 1156, in handleAvatarHelper
self.contactAvatarChanged(msnContact.userHandle,
binascii.hexlify(b64dec(msnContact.msnobj.sha1d)))
File "/home/norman/src/svn/PyMSNt/src/legacy/msn/msnw.py",
line 434, in contactAvatarChanged
LogEvent(INFO, self.factory.msncon.ident)
exceptions.AttributeError: 'NoneType' object has no attribute 'ident'
File "/home/norman/src/svn/PyMSNt/src/legacy/msn/msn.py",
line 819, in lineReceived
try: handler(params.split(' '))
File "/home/norman/src/svn/PyMSNt/src/legacy/msn/msn.py",
line 1376, in handle_UBX
self._gotUBX(MSNMessage(userHandle=params[0]))
File "/home/norman/src/svn/PyMSNt/src/legacy/msn/msn.py",
line 1063, in _gotUBX
self.contactPersonalChanged(message.userHandle, '')
File "/home/norman/src/svn/PyMSNt/src/legacy/msn/msnw.py",
line 446, in contactPersonalChanged
LogEvent(INFO, self.factory.msncon.ident)
exceptions.AttributeError: 'NoneType' object has no attribute 'ident'
--
- Norman Rasmussen
- Email: [EMAIL PROTECTED]
- Home page: http://norman.rasmussen.co.za/
From [EMAIL PROTECTED] Thu Aug 17 11:06:27 2006
From: [EMAIL PROTECTED] (Magnus Henoch)
Date: Thu Aug 17 11:06:44 2006
Subject: [py-transports] PyMSN-t returns identity client/pc for MUC rooms
Message-ID: <[EMAIL PROTECTED]>
I was invited to the room [EMAIL PROTECTED] Before
joining, my client asked for disco#info to check that it's really a
MUC room, but the returned identity was category="client", type="pc".
I would expect such rooms to return category="conference",
type="text".
Magnus
From [EMAIL PROTECTED] Thu Aug 17 13:04:56 2006
From: [EMAIL PROTECTED] (Vladimir Vrzic)
Date: Thu Aug 17 13:05:05 2006
Subject: [py-transports] PyMSNt twisted.web.sux.ParseError
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
I had users reporting the same symptoms just minutes ago. I checked the
connection to the MSN server:
$ time nc messenger.hotmail.com 1863 < msncmd
VER 0 MSNP11
CVR 1 7.5.0324 7.5.0324 7.0.0777
http://msgr.dlservice.microsoft.com/download/c/a/7/ca7e9edf-ae2c-441e-b6be-26ace50a5875/Install_MSN_Messenger.EXE
http://messenger.msn.com/fr
XFR 2 NS 207.46.4.87:1863 0 65.54.239.210:1863
real 0m0.561s
user 0m0.000s
sys 0m0.004s
I also looked but I couldn't find the Timeout variable anywhere:
/opt/jabber/pymsnt-0.10.3/src/legacy $ grep -iR timeout *
/opt/jabber/pymsnt-0.10.3/src/legacy $
Then I simply restarted the service, and now it works fine again (but
not for long, I fear). Very strange.
On Thu, 2006-08-17 at 07:38 +1000, James Bunton wrote:
> That could be it.
> You can try increasing the timeout. Edit src/legacy/msn/msnw.py
> Search for "Timeout", there's an integer there saying 30. If you
> think it might take longer that 30 seconds to make that connection,
> then I can increase it to 60 as a default.
>
> Also, another time when you find its not working, see what kind of
> time it takes then.
From [EMAIL PROTECTED] Thu Aug 17 13:36:27 2006
From: [EMAIL PROTECTED] (Norman Rasmussen)
Date: Thu Aug 17 13:36:43 2006
Subject: [py-transports] PyMSNt twisted.web.sux.ParseError
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
On 8/17/06, Vladimir Vrzic <[EMAIL PROTECTED]> wrote:
> /opt/jabber/pymsnt-0.10.3/src/legacy $ grep -iR timeout *
> /opt/jabber/pymsnt-0.10.3/src/legacy $
try it again in /opt/jabber/pymsnt-0.10.3/ you should get around 100
lines of output
--
- Norman Rasmussen
- Email: [EMAIL PROTECTED]
- Home page: http://norman.rasmussen.co.za/
From [EMAIL PROTECTED] Thu Aug 17 23:46:04 2006
From: [EMAIL PROTECTED] (James Bunton)
Date: Thu Aug 17 23:45:59 2006
Subject: [py-transports] PyMSNt twisted.web.sux.ParseError
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Just for clarity I'm going to state things as I understand :)
In PyMSNt 0.10.3 you're getting the parse errors throwing exceptions.
This is a bug that has been fixed in 0.11.2.
However you cannot switch to 0.11.2 because you were getting a
Timeout attempting to connect.
Is that all correct?
If so, my suggestion about adjusting the timeout was referring to src/
legacy/msn/msnw.py in 0.11.2, not 0.10.3.
The parse error is unrelated to the speed of your connection to MS
servers. Its because of a slight protocol change. When users don't
have avatars, Microsoft previously sent nothing, not it sends a 0,
which PyMSNt 0.10.3 tries to parse, and fails, throwing an exception,
and causing havoc.
In PyMSNt, there is a specific check for the 0, and also any parse
errors are caught and handled (by ignoring them and not grabbing the
avatar).
---
James
On 17/08/2006, at 11:04 PM, Vladimir Vrzic wrote:
> I had users reporting the same symptoms just minutes ago. I checked
> the
> connection to the MSN server:
>
> $ time nc messenger.hotmail.com 1863 < msncmd
> VER 0 MSNP11
> CVR 1 7.5.0324 7.5.0324 7.0.0777
> http://msgr.dlservice.microsoft.com/download/c/a/7/ca7e9edf-
> ae2c-441e-b6be-26ace50a5875/Install_MSN_Messenger.EXE http://
> messenger.msn.com/fr
> XFR 2 NS 207.46.4.87:1863 0 65.54.239.210:1863
>
> real 0m0.561s
> user 0m0.000s
> sys 0m0.004s
>
> I also looked but I couldn't find the Timeout variable anywhere:
>
> /opt/jabber/pymsnt-0.10.3/src/legacy $ grep -iR timeout *
> /opt/jabber/pymsnt-0.10.3/src/legacy $
>
> Then I simply restarted the service, and now it works fine again (but
> not for long, I fear). Very strange.
>
>
> On Thu, 2006-08-17 at 07:38 +1000, James Bunton wrote:
>> That could be it.
>> You can try increasing the timeout. Edit src/legacy/msn/msnw.py
>> Search for "Timeout", there's an integer there saying 30. If you
>> think it might take longer that 30 seconds to make that connection,
>> then I can increase it to 60 as a default.
>>
>> Also, another time when you find its not working, see what kind of
>> time it takes then.
> _______________________________________________
> py-transports mailing list
> [email protected]
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports