You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Chris Anderson <jc...@apache.org> on 2010/02/11 06:44:26 UTC

Re: Unrelated OS process error seems to timeout continuous _changes api

On Wed, Feb 10, 2010 at 7:37 AM, Erik Huisman <er...@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