couchdb-xd
couchdb-xd copied to clipboard
An invalid or illegal string was specified
Hi,
I tried the couchdb-xd with couchdb 1.1.0 and I get the following error for this piece of code:
Error from Firefox Web-Console: [13:15:05.889] uncaught exception: [Exception... "An invalid or illegal string was specified" code: "12" nsresult: "0x8053000c (NS_ERROR_DOM_SYNTAX_ERR)" location: "http://localhost:5984/couchdb-xd/_design/couchdb-xd/lib/pmdxr-host.js Line: 118"]
Code:
<script src="http://localhost:5984/couchdb-xd/_design/couchdb-xd/couchdb.js" type="text/javascript"></script>
<script type="text/javascript">
Couch.init(function() {
// execute on ready
var server = new Couch.Server('http://localhost:5984');
server.get(server, 'mydb', function(resp) {
console.log(resp);
});
});
Is this an unknown error or do I use it wrong???
Thanks, Amir
It seems you did not specify the necessary credentials, Admin and Pass