couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Evans" <j...@jpevans.com>
Subject Re: 500 Error ('EXIT', {noproc, ...
Date Fri, 25 Jul 2008 18:37:26 GMT
As an additional data point, if I add "count=5" (or some other small value)
it works fine (although only retrieves the first 5 documents obviously) but
if I bump count up to a number greater than the number of documents in the
database, or even a large number slightly below the number of documents in
the database (around 30,000) then I get a slightly different 500 error:

[info] [<0.117.0>] HTTP Error (code 500): {'EXIT',
                           {wait_timeout,
                               {gen_server,call,
                                   [<0.153.0>,{pread_bin,29459550}]}}}
[info] [<0.117.0>] 127.0.0.1 - - "GET /my-database/_view/my-objects/all" 500

-
John

On Fri, Jul 25, 2008 at 10:55 AM, John Evans <john@jpevans.com> wrote:

> 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