It's strange to me that the Todo Lite example works for you but not other things. We have tracked it down to an issue with Android 4.x, which seems to be fixed in 4.4.2 (at least on my Nexus 7).
Can you tell us more about your Android version? Here is the bug report (there are a few others if you search the tracker for "basic auth") https://code.google.com/p/android/issues/detail?id=10307 I'm not sure what the workaround is yet -- maybe manually setting the Authorization header will do it. We are also trying some combinations of doing a GET before a PUT, etc, to see if we can box in the corner case. Chris On Sunday, May 18, 2014 4:53:11 AM UTC-7, Will Holcomb wrote: > > I was able to get the ToDo working. I tried using coax to access my db: > > cblite.getURL( function( err, url ) { > var coax = require( 'coax' ) > var db = coax( [url, 'wells'] ) > > db.put( function( err, res ) { > if( err ) { > alert( "ip:" + err ) > } > ⋮ > > This prints: "ip:Syntax error: Unexpected end of input". Creating a > database like this is pretty much verbatim from the example; very > frustrating… > > -Will > > On Friday, May 16, 2014 10:57:37 PM UTC-4, J. Chris Anderson wrote: >> >> There is a similar discussion going on here: >> https://github.com/couchbaselabs/TodoLite-PhoneGap/issues/5 >> >> Are you able to get the TodoLite example app to work? It works for me, >> but I'm not a very large sample set... >> >> Chris >> > -- 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/38adc762-2607-45b6-a356-2ad980f319a0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
