incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Evans" <j...@jpevans.com>
Subject 500 Error ('EXIT', {noproc, ...
Date Fri, 25 Jul 2008 17:55:25 GMT
I am trying to access a view on my server (from a python client) and am
getting back a 500 error.  I see the following in the couchdb console:

[info] [<0.60.0>] HTTP Error (code 500): {'EXIT',
                           {noproc,
                               {gen_server,call,
                                   [<0.105.0>,{pread_bin,47322127}]}}}
[info] [<0.60.0>] 127.0.0.1 - - "GET /my-database/_view/my-objects/all" 500

On the python side I get this:
...
 File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/httplib.py",
line 509, in read
    return self._read_chunked(amt)
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/httplib.py",
line 548, in _read_chunked
    chunk_left = int(line, 16)
ValueError: invalid literal for int() with base 16: 'HTTP/1.1 500 Internal
Server Error\r\n'

But if I hit the same view with curl, everything works fine.  My python
client has been working fine for everything else I've tried to do, but it
fails consistently in this same manner with this particular view.  Obviously
the problem with the python code is that httplib is having trouble parsing
the response, but the root cause is the fact that I'm getting a 500 error in
the first palce.  FWIW, I'm setting the same HTTP headers (just one
actually, "Accept: application/json") in the curl request as in the python
client.

Has anyone seen this type of error before?  Or is there anywhere I can look
for more detail on the cause of the 500 error within couchdb?

-
John

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message