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.
V/Listenerīš Authorized via basic auth
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
<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/c007bd2e-c702-4974-b3f6-12ab492b696a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.