Login  Register

A problem about SCouchDB library

Posted by zekUs on Apr 06, 2010; 2:48pm
URL: https://forum.world.st/A-problem-about-SCouchDB-library-tp1752926.html

Hi,

this is not a directly pharo specific question but i guess here is the right place to ask.

i am playing with scouchdb library. i have a problem. i am trying to evaluate the code below:

| dbAdaptor |
dbAdaptor := SCouchDBAdaptor new host: '10.24.5.38' port: 5984.
dbAdaptor databases.

and there is an exception raised: "JSSyntaxError: Missing Comma". it looks like a problem with JSON package but when i debug and inspect the response object in SCouchDBAdaptor>>databases method, i can see the content of the response is nil. but the data i need is in the inBuffer field under cstream of the response. below snippet is the data from response objects' cstream. the data in inBuffer field:

'HTTP/1.1 200 OK
Server: CouchDB/0.10.0 (Erlang OTP/R13B)
Date: Tue, 06 Apr 2010 13:43:39 GMT
Content-Type: application/json
Content-Length: 21
Cache-Control: must-revalidate

["baseball","hasan"]

am i doing something wrong? 

best regards.

--
zekUs - http://zekzekus.com/blog

_______________________________________________
Pharo-users mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users