I am new to CouchDB, so please bear with me.
I have a CouchDB instance running on a virtual machine. I can access it simply through the browser via futon or directly:
http:
Calling this URL in the browser returns the correct JSON. But, when I try to name this exact url via ajax, I get nothing:
var ajaxUrl = 'http://192.168.62.128:5984/articles/hot_dog'; $.getJSON(ajaxUrl, null, function(data) { alert(data); });
A look at the response header with Firebug shows me that the HTTP response was 200 and the content-length was the correct size. Even Etag matches what's in CouchDB. But the answer itself is empty!
URL is absolutely right; I checked the triple and copied / pasted it directly (and, besides, I wouldnβt give a 200 answer if I hadnβt). I am using jQuery 1.4.2 and CouchDB 0.8
What's happening?
source share