incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mahendra Kariya <mahendrakar...@gmail.com>
Subject using jquery.couch.js
Date Thu, 03 Jun 2010 08:06:22 GMT
Hi,

I created a javascript, to access CouchDB. It is as follows:

           var dbname = "mahendradb";

            $.couch.db(dbname).create({
                error:function(status,id,reason) { alert(status+" reason:
"+reason);},
                success:function(resp) { alert (resp); }
            });

This script is running on port 80. CouchDB is on port 5984.  So, obviously I
will get an error. The error is as follows.

Error: uncaught exception: Invalid JSON: <!DOCTYPE HTML PUBLIC "-//IETF//DTD
HTML 2.0//EN">
<html><head>
<title>405 Method Not Allowed</title>
</head><body>
<h1>Method Not Allowed</h1>
<p>The requested method PUT is not allowed for the URL /mahendradb/.</p>
<hr>
<address>Apache/2.2.14 (Ubuntu) Server at localhost Port 80</address>
</body></html>

How can I access CouchDB from port 80?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message