couchdb-xd icon indicating copy to clipboard operation
couchdb-xd copied to clipboard

An invalid or illegal string was specified

Open amirn opened this issue 13 years ago • 1 comments

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

amirn avatar Oct 31 '11 12:10 amirn

It seems you did not specify the necessary credentials, Admin and Pass

darmie avatar Feb 11 '13 11:02 darmie