You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Erik Huisman <er...@innovatio.nl> on 2010/02/10 16:37:36 UTC

Unrelated OS process error seems to timeout continuous _changes api

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?

Cheers




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

Posted by Chris Anderson <jc...@apache.org>.
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