From: SourceForge.net <no...@so...> - 2007-05-30 16:31:22
|
Bugs item #1728431, was opened at 2007-05-30 17:21 Message generated for change (Comment added) made by gwynevans You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1728431&group_id=12867 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: Library Group: None Status: Open >Resolution: Duplicate Priority: 5 Private: No Submitted By: Gwyn Evans (gwynevans) Assigned to: Nobody/Anonymous (nobody) Summary: AttributeError: __getitem__ in httplib.py Initial Comment: Not 100% sure what the error is here, but thought I'd flag it in case it was something that should be looked at... When connecting to a XML-RPC server that's immediately closing it's input socket, I enabled debug in the httplib as below: import httplib httplib.HTTPConnection.debuglevel = 1 which resulted in the following error: Traceback (innermost last): File "Air_GetBal.py", line 17, in ? File "/export/home/topup/jython2.2b2/Lib/xmlrpclib.py", line 824, in __call__ File "/export/home/topup/jython2.2b2/Lib/xmlrpclib.py", line 974, in _ServerProxy__request File "/export/home/topup/jython2.2b2/Lib/xmlrpclib.py", line 843, in request File "/export/home/topup/jython2.2b2/Lib/xmlrpclib.py", line 881, in send_content File "/export/home/topup/jython2.2b2/Lib/httplib.py", line 566, in send AttributeError: __getitem__ Interestingly, I don't enable the debugging, I get different behaviour and see the following instead... Traceback (innermost last): File "Air_GetBal.py", line 17, in ? File "/export/home/topup/jython2.2b2/Lib/xmlrpclib.py", line 824, in __call__ File "/export/home/topup/jython2.2b2/Lib/xmlrpclib.py", line 974, in _ServerProxy__request File "/export/home/topup/jython2.2b2/Lib/xmlrpclib.py", line 845, in request File "/export/home/topup/jython2.2b2/Lib/httplib.py", line 1013, in getreply File "/export/home/topup/jython2.2b2/Lib/httplib.py", line 764, in getresponse File "/export/home/topup/jython2.2b2/Lib/httplib.py", line 273, in begin File "/export/home/topup/jython2.2b2/Lib/httplib.py", line 231, in _read_status IOError: Connection reset ---------------------------------------------------------------------- >Comment By: Gwyn Evans (gwynevans) Date: 2007-05-30 17:31 Message: Logged In: YES user_id=239067 Originator: YES Just noticed 229368, which looks to be the same underlying issue (although I don't understand the significance of needing to enable the debug in this particular case). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1728431&group_id=12867 |