CBLPusher bad_request error 400 Missing digest in stub attachment

31 views
Skip to first unread message

Ibrahim

unread,
Jul 25, 2015, 9:15:41 AM7/25/15
to Couchbase Mobile

Hi, I see an error that frequently appears from the CBLPusher, which causes the document not to be synced with the syncgateway

```
WARNING: CBLRestPusher[https://xxxxx.xxxxx.com:443/xxxx]: _bulk_docs got an error: {
    error = "bad_request";
    id = "contact:A1BB65C1-DC31-43F9-A1B3-9935CE6B6DCC";
    reason = "Missing digest in stub attachment \"small_picture:C2A50F35-BAC4-4CB7-9720-F8B5C55C1CD0\"";
    status = 400;
}
```
i checked the `_attachments` for that document and found that the digest for `small_picture:C2A50F35-BAC4-4CB7-9720-F8B5C55C1CD0` exists

whenever this error appears, i see this one also:
```
Domain=CBLHTTP Code=400 "400 bad_request" UserInfo=0x7fd437b233c0 {NSURL=https://xxxxx.xxxxx.com:443/xxxx/contact:A1BB65C1-DC31-43F9-A1B3-9935CE6B6DCC, NSLocalizedFailureReason=bad_request, NSLocalizedDescription=400 bad_request}
```

How can i debug those kind of errors?

Ibrahim

unread,
Jul 25, 2015, 9:21:01 AM7/25/15
to Couchbase Mobile, a...@phonidex.com
I forgot to mention that this error happens on version 1.1, i tried also the master branch and the same problem exists, BUT this problem does not happen in version 1.0.3

Jens Alfke

unread,
Jul 25, 2015, 12:58:38 PM7/25/15
to mobile-c...@googlegroups.com
This looks like a regression in Couchbase Lite. Please file an issue on Github and we'll investigate.

In the issue, please include the JSON of the document.

--Jens
Reply all
Reply to author
Forward
0 new messages