[issue405845] Fix for #405427: raise BadStatusLine

2022-04-10 Thread admin
Change by admin : -- github: None -> 34057 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8450] httplib: false BadStatusLine() raised

2018-09-14 Thread miss-islington
miss-islington added the comment: New changeset ee78ba2c819b0cd7671a575e584d8fe1b7adb3e4 by Miss Islington (bot) (Shoham Peller) in branch '2.7': [2.7] closes bpo-8450: a better error message when http status line isn't received (GH-2825)

[issue8450] httplib: false BadStatusLine() raised

2017-07-23 Thread Shoham Peller
Changes by Shoham Peller : -- pull_requests: +2877 ___ Python tracker ___ ___

[issue8450] httplib: false BadStatusLine() raised

2017-05-18 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +1748 ___ Python tracker ___

[issue8450] httplib: false BadStatusLine() raised

2017-05-04 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +1551 ___ Python tracker ___

[issue8450] httplib: false BadStatusLine() raised

2017-03-12 Thread Martin Panter
Martin Panter added the comment: I don’t think so. It is best to avoid a new exception type (even a subclass) in a bug fix. That would break code which checks “type(exc) == BadStatusLine” or similar. Specific exception messages are supposed to be implementation details, and the current

[issue7427] BadStatusLine is hell to debug

2017-03-12 Thread Martin Panter
Martin Panter added the comment: This change was only made in 2.7a4, not 2.6 -- versions: +Python 2.7 -Python 2.6 ___ Python tracker ___

[issue8450] httplib: false BadStatusLine() raised

2017-03-12 Thread Shoham Peller
Shoham Peller added the comment: How about back-porting the v3.5 fix, and the new "RemoteDisconnected" exception? Is that reasonable? -- nosy: +Shoham Peller ___ Python tracker

[issue8450] httplib: false BadStatusLine() raised

2016-05-14 Thread Martin Panter
Changes by Martin Panter : -- stage: -> needs patch versions: -Python 2.6, Python 3.1, Python 3.2 ___ Python tracker ___

[issue23054] ConnectionError: ('Connection aborted.', BadStatusLine(''''))

2015-07-18 Thread Chris Mattmann
Chris Mattmann added the comment: Hi there, we are experiencing this in tika-python too, see: https://github.com/chrismattmann/tika-python/issues/44 -- nosy: +chrismattmann ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23054

[issue8450] httplib: false BadStatusLine() raised

2015-07-18 Thread Martin Panter
Martin Panter added the comment: Issue 3566 has added a new exception subclass, RemoteDisconnected, in 3.5. People are still complaining about the old BadStatusLine exception in Python 2 though. See Issue 23054. Python 2 could still get better documentation of the BadStatusLine exception

[issue23054] ConnectionError: ('Connection aborted.', BadStatusLine(''''))

2015-07-18 Thread Martin Panter
Martin Panter added the comment: There is hopefully a better RemoteDisconnected exception and documentation in 3.5, thanks to Issue 3566. In Python 2, I think this is the same as Issue 8450. -- resolution: - duplicate status: open - closed superseder: - httplib: false BadStatusLine

[issue8450] httplib: false BadStatusLine() raised

2015-07-18 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- components: +Documentation ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8450 ___ ___

[issue8450] httplib: false BadStatusLine() raised

2015-01-15 Thread Demian Brecht
Demian Brecht added the comment: This should likely be closed as a duplicate of #3566, which has additional detail. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8450 ___

[issue8450] httplib: false BadStatusLine() raised

2015-01-14 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8450 ___ ___ Python-bugs-list mailing list

[issue8450] httplib: false BadStatusLine() raised

2015-01-12 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- nosy: +demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8450 ___ ___

[issue23054] ConnectionError: ('Connection aborted.', BadStatusLine(''''))

2014-12-16 Thread Joe Cabrera
Joe Cabrera added the comment: This is an error wrapping coming from requests. https://github.com/kennethreitz/requests/issues/2364 The Requests team has concluded they can do nothing about this error, I believe the next step up is the python httplib library. --

[issue23054] ConnectionError: ('Connection aborted.', BadStatusLine(''''))

2014-12-16 Thread R. David Murray
is BadStatusLine('')). (Note that issue 7427 was where we fixed the repr, if you are curious). I see that requests would like a better error message. Is there a concrete suggestion for what that better error message would look like? -- ___ Python tracker rep

[issue23054] ConnectionError: ('Connection aborted.', BadStatusLine(''''))

2014-12-16 Thread Martin Panter
Martin Panter added the comment: Not exactly sure what do you want the Python library to do, but perhaps this is a duplicate of Issue 8450, about making the error less misleading when the connection is closed before _any_ status line is sent. See also Issue 7427. -- nosy: +vadmium

[issue23054] ConnectionError: ('Connection aborted.', BadStatusLine(''''))

2014-12-16 Thread R. David Murray
R. David Murray added the comment: Ouch. I assumed the change was made to the repr, not the contents of line (I wasn't involved in that fix). Not that that would actually affect this issue, I think, since Requests doesn't want to introspect exception objects. --

[issue23054] ConnectionError: ('Connection aborted.', BadStatusLine(''''))

2014-12-15 Thread Joe Cabrera
New submission from Joe Cabrera: ConnectionError: ('Connection aborted.', BadStatusLine()) This error can also occur on Linux and Windows, a more descriptive error messages would be useful for people trying to debug their code. -- assignee: docs@python components: Documentation

[issue23054] ConnectionError: ('Connection aborted.', BadStatusLine(''''))

2014-12-15 Thread R. David Murray
R. David Murray added the comment: I think you made a mistake in your copy and paste or retyping of that line, since it is not valid python syntax. What is not explicit about it? It is telling you there was a bad status line, and what the bad status line contents was. (Used to be you

[issue23054] ConnectionError: ('Connection aborted.', BadStatusLine(''''))

2014-12-15 Thread R. David Murray
R. David Murray added the comment: Perhaps part of your problem is that you are not getting the string representation of the error message. Is that because of your code, or is this representation something the stdlib is generating? -- ___ Python

[issue7427] BadStatusLine is hell to debug

2014-11-19 Thread Martin Panter
Martin Panter added the comment: As far as I can tell, the “line” attribute isn’t documented anyway. But Issue 8450 is opened about improving the exception when the connection is closed. -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org

[issue8450] httplib: false BadStatusLine() raised

2014-11-19 Thread Martin Panter
Martin Panter added the comment: See also Issue 3566, which also brings up the false BadStatusLine exception, and suggests some kind of retry logic. Whatever exception it is, it could be documented better. In Issue 66621, the poster thought it should be an IncompleteRead exception

[issue8450] httplib: false BadStatusLine() raised

2014-11-19 Thread Martin Panter
Martin Panter added the comment: Sorry the IncompleteRead reference was meant to be Issue 666219 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8450 ___

[issue8450] httplib: false BadStatusLine() raised

2013-03-05 Thread karl
karl added the comment: Hmm no code. I wonder if it's about this part. http://hg.python.org/cpython/file/3.3/Lib/http/client.py#l321 -- nosy: +karlcow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8450

[issue7427] BadStatusLine is hell to debug

2012-09-25 Thread Andrew Swan
like the original fix should have been to add __repr__ to BadStatusLine rather than changing its contents. Can this be revisited? -- nosy: +aswan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7427

urllib2.urlopen+BadStatusLine+https

2011-05-12 Thread up2date.cyborg
Hi, I am new to this list, I don't really know if I should post here my request. Anyway. The following code is raising httplib.BadStatusLine on urllib2.urlopen(url) url = 'https://stat.netaffiliation.com/requete.php?login=xxxmdp=yyydebut=2011-05-01fin=2011-05-12' response =

[issue8450] httplib: false BadStatusLine() raised

2011-03-17 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- assignee: - orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8450 ___ ___

[issue8450] httplib: false BadStatusLine() raised

2010-08-03 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman dirk...@ochtman.nl: -- nosy: +djc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8450 ___ ___ Python-bugs-list mailing

[issue8450] httplib: false BadStatusLine() raised

2010-04-19 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +orsenthil priority: - normal versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8450 ___

[issue8450] httplib: false BadStatusLine() raised

2010-04-18 Thread mschu
New submission from mschu mschu@gmail.com: Independent from HTTP strict, an invalid BadStatusLine() exception is raised when a keep-alive connection exceeds its timeout: client-server request s-c answer connection timeout passing s-c: FIN/ACK c-s: ACK c-s: get request/FIN s-c: RST (without

[issue7427] BadStatusLine is hell to debug

2009-12-04 Thread Jake McGuire
Jake McGuire j...@youtube.com added the comment: I think what's happening is that your connection is being closed due to inactivity, so the status line that comes back is empty. Printing repr(line) would probably make the emptiness clear, but maybe the httplib code should put in a more

[issue7427] BadStatusLine is hell to debug

2009-12-03 Thread djc
New submission from djc dirk...@ochtman.nl: For whatever reason, BadStatusLine tracebacks often don't show the line passed into them. Given the errr, heavy architecture of httplib, this makes it pretty bad to debug. It's not clear to me why this is: Traceback (most recent call last): File

[issue7427] BadStatusLine is hell to debug

2009-12-03 Thread djc
djc dirk...@ochtman.nl added the comment: Also, it might be useful here if it showed repr(line) instead of just line, but that'd just be icing on the cake. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7427

[issue5007] urllib2 HTTPS connection failure (BadStatusLine Exception)

2009-11-22 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: This bug is not reproducible in trunk, py3k and is not reproducible in py26 releases too. I tried to hunt down if any changes in the code-line from py2.5 to py2.6 had effect on the behavior mention (BadStatusLine) , but don't see any. I am

[issue5007] urllib2 HTTPS connection failure (BadStatusLine Exception)

2009-08-22 Thread Shashank
Shashank shashank.sunny.si...@gmail.com added the comment: Works fine for me in 2.6 but fails as said by OP on 2.5. (I came across this in the course of my work and am submitting a change in a bug for the first time, pardon me if something is inappropriate :) I used this modified codeblock:

[issue5007] urllib2 HTTPS connection failure (BadStatusLine Exception)

2009-08-22 Thread Senthil
Changes by Senthil orsent...@gmail.com: -- assignee: - orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5007 ___ ___ Python-bugs-list

[issue5007] urllib2 HTTPS connection failure (BadStatusLine Exception)

2009-04-22 Thread Daniel Diniz
Daniel Diniz aja...@gmail.com added the comment: Confirmed in 2.5, cannot confirm on trunk. Needs confirmation on 2.6 and 3.x. -- keywords: +easy nosy: +ajaksu2 priority: - normal versions: +Python 3.0 ___ Python tracker rep...@bugs.python.org

[issue5007] urllib2 HTTPS connection failure (BadStatusLine Exception)

2009-02-12 Thread Daniel Diniz
Changes by Daniel Diniz aja...@gmail.com: -- nosy: +jjlee, orsenthil stage: - test needed versions: +Python 2.6 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5007 ___

[issue5007] urllib2 HTTPS connection failure (BadStatusLine Exception)

2009-01-19 Thread ak
/usr/lib/python2.5/httplib.py, line 385, in begin version, status, reason = self._read_status() File /usr/lib/python2.5/httplib.py, line 349, in _read_status raise BadStatusLine(line) httplib.BadStatusLine As you can see the reply from the server seems empty (which results

Re: BadStatusLine:

2008-09-22 Thread Bruno Desthuilliers
noelob a écrit : Hi All, During performance testing of my web application, I occasionally get a BadStatusLine exception from httplib. Reading http://docs.python.org/lib/module-httplib.html#l2h-4021 tells me that it's Raised if a server responds with a HTTP status code that we don't understand

Re: BadStatusLine:

2008-09-22 Thread Diez B. Roggisch
noelob wrote: Hi All, During performance testing of my web application, I occasionally get a BadStatusLine exception from httplib. Reading http://docs.python.org/lib/module-httplib.html#l2h-4021 tells me that it's Raised if a server responds with a HTTP status code that we don't

Re: BadStatusLine error

2008-05-29 Thread Jim
On May 28, 11:24 am, Diez B. Roggisch [EMAIL PROTECTED] wrote: Jim wrote: Hi I get a BadStatusLine error (indicated below). Can anyone help with how to catch error in code before abort? http://docs.python.org/tut/node10.html Diez Thanks Diez docs help. Jim -- http://mail.python.org

BadStatusLine error

2008-05-28 Thread Jim
Hi I get a BadStatusLine error (indicated below). Can anyone help with how to catch error in code before abort? Thanks Jim Traceback (most recent call last): File C:\Python25\Lib\site-packages\pythonwin\pywin\framework \scriptutils.py, line 310, in RunScript exec codeObject in __main__

Re: BadStatusLine error

2008-05-28 Thread Diez B. Roggisch
Jim wrote: Hi I get a BadStatusLine error (indicated below). Can anyone help with how to catch error in code before abort? http://docs.python.org/tut/node10.html Diez -- http://mail.python.org/mailman/listinfo/python-list

[ python-Bugs-1429783 ] urllib.py: AttributeError on BadStatusLine

2007-03-14 Thread SourceForge.net
thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Closed Resolution: Fixed Priority: 5 Private: No Submitted By: kxroberto (kxroberto) Assigned to: Nobody/Anonymous (nobody) Summary: urllib.py: AttributeError on BadStatusLine

[ python-Bugs-1429783 ] urllib.py: AttributeError on BadStatusLine

2006-02-11 Thread SourceForge.net
on BadStatusLine Initial Comment: PythonWin 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] on win32. in httplib errcode -1 file=self._conn.sock.makefile('rb', 0) is returned on Badstatusline: except BadStatusLine, e: ### hmm. if getresponse() ever closes the socket

[ python-Bugs-1429783 ] urllib.py: AttributeError on BadStatusLine

2006-02-11 Thread SourceForge.net
thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Robert Kiendl (kxroberto) Assigned to: Nobody/Anonymous (nobody) Summary: urllib.py: AttributeError on BadStatusLine Initial

[ python-Bugs-1429783 ] urllib.py: AttributeError on BadStatusLine

2006-02-11 Thread SourceForge.net
thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Robert Kiendl (kxroberto) Assigned to: Nobody/Anonymous (nobody) Summary: urllib.py: AttributeError on BadStatusLine Initial