Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An invalid or illegal string was specified #4

Open
amirn opened this issue Oct 31, 2011 · 1 comment
Open

An invalid or illegal string was specified #4

amirn opened this issue Oct 31, 2011 · 1 comment

Comments

@amirn
Copy link

amirn commented Oct 31, 2011

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

@darmie
Copy link

darmie commented Feb 11, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants