> > > Is that means If I have a view named View1 on couchbase server behind syncgateway, and I have a view named View1 on couchbase Lite, when I start replication, I will got a Conflict?
On Friday, June 27, 2014 at 9:36:25 PM UTC+8, [email protected] wrote: > > Hi, > > I can successfully PUT a new document e.g. like: > > $.ajax({ > type: "PUT", > url: > "http://0c032067-32b2-40eb-97b0-813fcc0ed9ba:99287e13-3dc5-49b8-b13f-ce6607cd52b7@localhost:5984/myapp/mydoc1", > data: JSON.stringify({title: 'My doc 2', type: 'mydoc'}), > contentType: "application/json", > success: function (msg) { > console.log('succes: ', msg) > }, > error: function (err){ > console.log('error: ', err) > } > }); > > but when I put again with > ... > data: JSON.stringify({title: 'My doc 2 update', type: 'mydoc'}) > ... > > i get response error: 409 (Conflict) > > when i expect my logcat iget : > > dalvikvm D GC_FOR_ALLOC freed 336K, 3% free 17783K/18320K, > paused 20ms, total 21ms > Listener W authHeader is null > W Unauthorized -- requestCredentials not given or > do not match allowed credentials > dalvikvm D GC_FOR_ALLOC freed 247K, 3% free 17783K/18320K, > paused 19ms, total 19ms > Listener V Authorized via basic auth > dalvikvm D GC_FOR_ALLOC freed 258K, 3% free 17783K/18320K, > paused 19ms, total 21ms > Listener W authHeader is null > W Unauthorized -- requestCredentials not given or > do not match allowed credentials > dalvikvm D GC_FOR_ALLOC freed 231K, 3% free 17782K/18320K, > paused 19ms, total 19ms > Listener V Authorized via basic auth > System.err W com.couchbase.lite.CouchbaseLiteException > W at > com.couchbase.lite.Database.putRevision(Database.java:3543) > W at > com.couchbase.lite.Database.putRevision(Database.java:3421) > W at > com.couchbase.lite.router.Router.update(Router.java:1483) > W at > com.couchbase.lite.router.Router.update(Router.java:1519) > W at > com.couchbase.lite.router.Router.do_PUT_Document(Router.java:1554) > W at > java.lang.reflect.Method.invokeNative(Native Method) > W at > java.lang.reflect.Method.invoke(Method.java:515) > W at > com.couchbase.lite.router.Router.start(Router.java:464) > W at > com.couchbase.lite.listener.LiteServlet.service(LiteServlet.java:128) > W at > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > W at > Acme.Serve.Serve$ServeConnection.runServlet(Serve.java:2251) > W at > Acme.Serve.Serve$ServeConnection.parseRequest(Serve.java:2176) > W at > Acme.Serve.Serve$ServeConnection.run(Serve.java:1988) > W at > Acme.Utils$ThreadPool$PooledThread.run(Utils.java:1223) > W at java.lang.Thread.run(Thread.java:841) > Router E Error updating doc: mydoc1 > dalvikvm D GC_FOR_ALLOC freed 188K, 3% free 17783K/18320K, > paused 11ms, total 11ms > > > i'm @@gazing here: > http://developer.couchbase.com/mobile/develop/references/couchbase-lite/rest-api/document/put---db---doc-/index.html > > i'm on android 4.4.2 (lg nexus 5) > > any hints ? > > thx > > // > > pelle > > > > > -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/e7618bed-436d-4ca5-a133-f0f2959ba080%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
