We’re using angular-couchbase with the couchbase lite plugin on iOS (this is a cordova app). The call above to create the database fails with the error:
Unable to create database: ""
(The value in quotes is supposed to be an error message but its empty so not very informative I’m wondering if there’s anything I missed (permissions?) or some hints on how to troubleshoot this?
No, that’s the correct value. Couchbase Lite does not open a real TCP port (that would be a security hole and is also more expensive); instead it installs a handler that recognizes HTTP requests for URLs with hostnames matching “lite.couchbase.”
OK, this is different than the Android side where we simply talk REST to localhost (which also explains why we get a hostname lookup failure for lite.couchbase). We’re using the PhoneGap plugin from JS code, so how does that work on the iOS side?
What exactly did it do? We should try to find a way around this, in case others run into the problem. (Actually please file this as an issue on Github. Thanks!)