Bugs item #1887151, was opened at 2008-02-05 19:54 Message generated for change (Settings changed) made by rotemliss You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1887151...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: General Group: None
Status: Closed Resolution: Accepted
Priority: 5 Private: No Submitted By: NicDumZ — Nicolas Dumazet (nicdumz) Assigned to: Nobody/Anonymous (nobody) Summary: getUrl crashes when lent(text) does not match content-length
Initial Comment: I was running my script in a virtual console, so I can't copy/paste the stack dump here. However, it was, roughly :
Warning! len(text) does not match content-length: 9789 != 13259 Traceback: page.get() in my script -> wikipedia.py:607 -> wikipedia.py:656 -> wikipedia.py:4038 : "self.conn.close()" AttributeError: 'Site' object has no attribute 'conn'
This came from the old persistant_http config, a patch is included.
Cheers !
Nicolas Dumazet — NicDumZ.
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2008-02-05 20:20
Message: Logged In: YES user_id=1327030 Originator: NO
Fixed in r4982.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1887151...
pywikipedia-l@lists.wikimedia.org