couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Anderson <jch...@apache.org>
Subject Re: Unrelated OS process error seems to timeout continuous _changes api
Date Thu, 11 Feb 2010 05:44:26 GMT
On Wed, Feb 10, 2010 at 7:37 AM, Erik Huisman <erik@innovatio.nl> wrote:
> Hi,
>
> I am using couchdbx 10.0 on macosx..
>
> When i have a continuous connection with the _changes api AND i am using a filter
>
> i.e. : /changesdb/_changes?feed=continuous&filter=push/apns
>
> If OS Process has raised an error on a totally unrelated map/reduce view the continuous
connection closes when i am posting a document to the changesdb.
>
> Any id why this happens and how to solve it?
>

you need to avoid the error in your map reduce function.

the best way to do this id to duck-type your code like

if (doc.author && doc.author.name) emit(doc.author.name, null)

> Cheers
>
>
>
>



-- 
Chris Anderson
http://jchrisa.net
http://couch.io

Mime
View raw message