Hi Stefan, from your sample code it wasn’t really clear that you could have the same attachment name as filesystems wouldn’t allow this.
Of course your `files` array might have included duplicates. Fwiw, I tried to reproduce your example and couldn’t get to a point where I had two attachments of the same constructed from a JS object (because object keys are deduplicated in JS). Could you share your example code that produced the error? I agree that the error message should be better, but so far we can’t see it. Best Jan -- > On 12. Mar 2018, at 09:22, Stefan Klein <[email protected]> wrote: > > 2018-03-12 7:03 GMT+01:00 Stefan Klein <[email protected]>: > >> Hi Couchusers, >> >> i am trying to create a document with multiple attachments. >> 13 images, 1.2MB total. >> >> I get a 500 from couchdb 1.7.1 and in the couchdb log i get: >> >> [info] [<0.3275.73>] Stacktrace: [{couch_db,write_streamed_attachment, >> [<0.4494.73>, >> #Fun<couch_doc.16.26040431>,-2603], >> [{file,"couch_db.erl"},{line, >> 1075}]}, >> {couch_db,with_stream,3, >> [{file,"couch_db.erl"},{line, >> 1034}]}, >> {couch_db,'-doc_flush_atts/2- >> lc$^0/1-0-',2, >> [{file,"couch_db.erl"},{line,941}]}, >> {couch_db,'-doc_flush_atts/2- >> lc$^0/1-0-',2, >> [{file,"couch_db.erl"},{line,941}]}, >> {couch_db,doc_flush_atts,2, >> [{file,"couch_db.erl"},{line,941}]}, >> {couch_db,'-update_docs/4-lc$^7/1-7-',2, >> [{file,"couch_db.erl"},{line,810}]}, >> {couch_db,'-update_docs/4-lc$^6/1-6-',2, >> [{file,"couch_db.erl"},{line,809}]}, >> {couch_db,update_docs,4, >> [{file,"couch_db.erl"},{line,809}]}] >> >> >> > Found the error, the attachment names where not unique. > A resonable error message would have been nice, though. > > regards, > Stefan -- Professional Support for Apache CouchDB: https://neighbourhood.ie/couchdb-support/
