couchbaselabs/TouchDB-iOS — Issue #31: Auth errors pushing big attachments to Cloudant/BigCouch
Author: snej
Created: 2012-01-23 19:08:32+00:00
State: open
Labels: bug

A couple of people are reporting errors when replicating to Cloudant.com (which uses the BigCouch fork of CouchDB.) These only seem to occur when uploading documents containing large attachments; I tested using small (~8kbyte) attachments and didn't see the problem.

So far all of the details are in this thread:
https://groups.google.com/forum/#!topic/mobile-couchbase/hDrbXO2M4x4

The problem seems to involve HTTP auth in large POST requests. The client is POSTing the document with attachments, and after the server returns a 401 status, the client isn't retrying with the authentication header.