[Baypiggies] Need help root causing exception http.client.BadStatusLine

Shubhra Sharma sharma.shubhra07 at gmail.com
Mon Oct 29 00:00:40 CET 2012


Hi Aahz,

Thanks for responding. I'm not sending an Expect Header and I'm using
Apache-Coyote/1.1

Thanks,
Shubhra

On Sun, Oct 28, 2012 at 2:06 PM, Aahz <aahz at pythoncraft.com> wrote:

> On Sun, Oct 28, 2012, Shubhra Sharma wrote:
> >
> > I am encountering http.client.BadStatusLine exception when I run my
> python
> > scripts on CentOS6.32 but things seem to work fine on MAC OSX10.7.5 and
> > 10.8. I'm on Python3.2.3.
> >
> > I searched for answers on the internet  and looked at the python
> > documentation as well without much luck. As per the documentation  if a
> > server responds with a HTTP status code that we don?t understand this
> error
> > is raised. The server is a Tomcat server. Any ideas on how to debug this
> > will be greatly appreciated.
> >
> > Here's a snippet of the error:
> > response = conn.getresponse()
> >   python3.2/http/client.py", line 1049, in getresponse
> >     response.begin()
> >   python3.2/http/client.py", line 346, in begin
> >     version, status, reason = self._read_status()
> >   python3.2/http/client.py", line 328, in _read_status
> >     raise BadStatusLine(line)
> > http.client.BadStatusLine:
>
> I've seen various causes for this, but I'd start by making sure that
> you're not sending an Expect: header and doing HTTP/1.0 connection.
> --
> Aahz (aahz at pythoncraft.com)           <*>
> http://www.pythoncraft.com/
>
> "We've just found a line in a perl script that invokes a shell script to
> call
> a lisp program which invokes the very-same perl script."  --anonymous
> _______________________________________________
> Baypiggies mailing list
> Baypiggies at python.org
> To change your subscription options or unsubscribe:
> http://mail.python.org/mailman/listinfo/baypiggies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/baypiggies/attachments/20121028/b1ee716c/attachment.html>


More information about the Baypiggies mailing list