I'm trying to call the replicator via a post request and I'm getting the 
following. The name shown below is the target database. The url is 
obviously an example but this works fine against CouchDB.

02-03 00:21:42.091  26244-26355/com.chrobinson.sharpmobile V/Listenerīš• 
Authorized via basic auth
02-03 00:21:42.094  26244-26355/com.chrobinson.sharpmobile E/Routerīš• Router 
unable to route request to do_POST_replicate
    java.lang.reflect.InvocationTargetException
            at java.lang.reflect.Method.invoke(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:372)
            at com.couchbase.lite.router.Router.start(Router.java:466)
            at 
com.couchbase.lite.listener.LiteServlet.service(LiteServlet.java:128)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
            at Acme.Serve.Serve$ServeConnection.runServlet(Serve.java:2251)
            at 
Acme.Serve.Serve$ServeConnection.parseRequest(Serve.java:2176)
            at Acme.Serve.Serve$ServeConnection.run(Serve.java:1988)
            at Acme.Utils$ThreadPool$PooledThread.run(Utils.java:1223)
            at java.lang.Thread.run(Thread.java:818)
     *Caused by: java.lang.IllegalArgumentException: Invalid database name: 
http://invalid.website.com:5984/test_database*
            at 
com.couchbase.lite.Manager.getDatabaseWithoutOpening(Manager.java:479)
            at 
com.couchbase.lite.Manager.getExistingDatabase(Manager.java:251)
            at com.couchbase.lite.Manager.getReplicator(Manager.java:572)
            at 
com.couchbase.lite.router.Router.do_POST_replicate(Router.java:623)
            at java.lang.reflect.Method.invoke(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:372)
            at com.couchbase.lite.router.Router.start(Router.java:466)
            at 
com.couchbase.lite.listener.LiteServlet.service(LiteServlet.java:128)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
            at Acme.Serve.Serve$ServeConnection.runServlet(Serve.java:2251)
            at 
Acme.Serve.Serve$ServeConnection.parseRequest(Serve.java:2176)
            at Acme.Serve.Serve$ServeConnection.run(Serve.java:1988)
            at Acme.Utils$ThreadPool$PooledThread.run(Utils.java:1223)
            at java.lang.Thread.run(Thread.java:818)

Thanks,
Ron

-- 
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/90c55abb-731d-4816-8e94-3cbc909c7191%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to