couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Shorin <>
Subject Re: saving attachments with a name that starts with an underscore
Date Wed, 03 Apr 2013 19:06:13 GMT
Hi Cory

Attachment names and any top level document fields are forbidden to
starts with underscore `_` character since it is used to mark private
or system fields that CouchDB may use for internal proposes. So this
is by design, you have to rename your attachment and strip leading

I'm wonder why you receives "[Errno 104] Connection reset by peer"
instead of regular HTTP 400 {"error": "bad_request", "reason":
"Attachment name can't start with '_'"} for such cases. May be Benoit
as couchdbkit author say more about such behavior...

On Wed, Apr 3, 2013 at 10:52 PM, Cory Zue <> wrote:
> I'm trying to save an attachment to a couch doc that starts with an
> underscore (e.g. "_myfile.txt") and i'm getting rejected with "[Errno 104]
> Connection reset by peer".
> Is this a known limitation of couch or a bug in my client library
> (couchdbkit)?
> thanks,
> Cory

View raw message