TouchDB Attachment over SSL Problem

113 views
Skip to first unread message

Andreas Walther

unread,
Jul 13, 2012, 4:34:53 AM7/13/12
to mobile-c...@googlegroups.com
Hello,

attachments are not uploaded to the couchDB on a https / ssl connection.

any idea?

thx


Marty Schoch

unread,
Jul 13, 2012, 12:55:52 PM7/13/12
to mobile-c...@googlegroups.com
Could you provide more details about whether this is on iOS or
Android? Is the target of the replication stock CouchDB, IrisCouch or
Cloudant? And include a link to any relevant logs.

Thanks,

marty

Andreas Walther

unread,
Jul 14, 2012, 8:22:21 AM7/14/12
to mobile-c...@googlegroups.com
Hi Marty,

it is couchDB 1.2 and TouchDb iOS

and the log says:

14:15:55.230| TDMultipartUploader[PUT https://db_url/B206AB9D-CBD5-4892-9744-D34604DCA1C0?new_edits=false]: Got error Error Domain=NSURLErrorDomain Code=-1021 "Request-Body-Stream ausgelastet" UserInfo=0xce22850 {NSErrorFailingURLStringKey=https://db_url/B206AB9D-CBD5-4892-9744-D34604DCA1C0?new_edits=false, NSErrorFailingURLKey=https://db_url/B206AB9D-CBD5-4892-9744-D34604DCA1C0?new_edits=false, NSLocalizedDescription=Request-Body-Stream ausgelastet, NSUnderlyingError=0xce22880 "Request-Body-Stream ausgelastet"}

thx


Am Freitag, 13. Juli 2012 18:55:52 UTC+2 schrieb Marty Schoch:
On Fri, Jul 13, 2012 at 1:34 AM, Andreas Walther

Andreas Walther

unread,
Jul 14, 2012, 8:32:58 AM7/14/12
to mobile-c...@googlegroups.com
and the attachment gets finaly uploaded on the next restart of the app...

Jens Alfke

unread,
Jul 16, 2012, 6:17:18 PM7/16/12
to mobile-c...@googlegroups.com

On Jul 14, 2012, at 5:22 AM, Andreas Walther <and...@contrast-concepts.de> wrote:

14:15:55.230| TDMultipartUploader[PUT https://db_url/B206AB9D-CBD5-4892-9744-D34604DCA1C0?new_edits=false]: Got error Error Domain=NSURLErrorDomain Code=-1021 "Request-Body-Stream ausgelastet" UserInfo=0xce22850 {NSErrorFailingURLStringKey=https://db_url/B206AB9D-CBD5-4892-9744-D34604DCA1C0?new_edits=false, NSErrorFailingURLKey=https://db_url/B206AB9D-CBD5-4892-9744-D34604DCA1C0?new_edits=false, NSLocalizedDescription=Request-Body-Stream ausgelastet, NSUnderlyingError=0xce22880 "Request-Body-Stream ausgelastet"}

This is the "Request body stream exhausted" bug. It was believed to be fixed by a commit on 6/28. What version of TouchDB are you using?

—Jens

Andreas Walther

unread,
Jul 18, 2012, 7:24:51 AM7/18/12
to mobile-c...@googlegroups.com

Hallo Jens,

i am currently using a checkout with verison 0.792 so the exhausted" bug is not fixed there i think...

so i tested all newer verisons 0.8 and 0.9 with a "http" connection no ssl and in these versions, if i add a photo to a document it is not transmited, i get my syncbar and it stayes by "SYNC progress: 1 / 2" or somthing like that. No touchDB error is logged. Now i have to restart the app and the photo is transmited correctly.

 thx,
Andy

Jens Alfke

unread,
Jul 18, 2012, 3:05:41 PM7/18/12
to mobile-c...@googlegroups.com

On Jul 18, 2012, at 4:24 AM, Andreas Walther <and...@contrast-concepts.de> wrote:

so i tested all newer verisons 0.8 and 0.9 with a "http" connection no ssl and in these versions, if i add a photo to a document it is not transmited, i get my syncbar and it stayes by "SYNC progress: 1 / 2" or somthing like that. No touchDB error is logged. Now i have to restart the app and the photo is transmited correctly.

Please enable logging of SyncVerbose, RemoteRequest and TDMultiStreamWriter (see the wiki for instructions) and run this again. File an issue in Github, and either email me the log file or upload it somewhere and put a link in the issue description. Thanks.

Be sure to note what you are uploading to (what hosted service or version of CouchDB.)

—Jens

Andreas Walther

unread,
Jul 19, 2012, 6:09:57 AM7/19/12
to mobile-c...@googlegroups.com

ok i have posted the issue in Github...

greetings
Reply all
Reply to author
Forward
0 new messages