Closed GoogleCodeExporter closed 9 years ago
browser issue there sorry
Issue 1 - rest_api.pl is empty
using the perl client or the web interface returns no data (though a 200 OK
from the REST client).
Example: perl cif -q domains
Apache Access Log (Error log empty): 127.0.0.1 - - [03/May/2012:16:54:52 -0700]
"GET /api/domain?apikey=12345 HTTP/1.1" 200 1717 "-" "REST::Client/245"
Output from Client (modified to show details):
SERVER RESPONSE 200
SERVER DATA
SERVER END
This appears to be because the file "rest_api.pl" is blank except for the loop
for checking library locations.
Issue 2: the shipped cif perl client is broken
Perform the same example query as above and the output appears to be related to
an error in the configuration file.
Example:
perl /opt/cif/bin/cif -q domain
DEBUG CONFIG [/home/cif/.cif ]
DEBUG QUERY [domain]
DEBUG NOLOG [0]
DEBUG NOMAP [0]
DEBUG CONFIDENCE [0]
DEBUG LIMIT [500]
Use of uninitialized value in concatenation (.) or string at
/opt/cif/bin/../lib/CIF/Client/REST.pm line 57.
Use of uninitialized value $ret in concatenation (.) or string at
/opt/cif/bin/cif line 192.
DEBUG RET []
DEBUG ERR [400 URL must be absolute]
400 URL must be absolute at /opt/cif/bin/cif line 195.
Between the client documentation inside of the perl library and the
documentation here on the site its a little confusing what should be in the
config file and in what order. With the V1_B1 code this seems to work.
[client]
apikey = 12345
driver = 'REST'
host = https://localhost:443/api
verify_tls = 0
# driver = 'ZeroMQ'
# table_nowarning = 1
# csv_noseperator = 1
[client_rest]
host = https://localhost:443/api
timeout = 60
# add this if you have a self signed cert
verify_tls = 0
# proxy = https://localhost:5555
#[client_zeromq]
#host = tcp://127.0.0.1:5555
Original comment by jbab...@gmail.com
on 3 May 2012 at 9:17
the rest_api.pl is just a path loader for apache, the real magic is in
/opt/cif/lib/CIF/Router/REST.pm
see:
http://code.google.com/p/collective-intelligence-framework/wiki/ServerInstall_v1
and
http://code.google.com/p/collective-intelligence-framework/wiki/ServerInstall_v1
#Initial_Data_Load
for your other issues; we're not supporting domain queries in this, just
testing stuff out. You'll have to dig into the database manually a bit to get
some good test query data.
if you're testing this instead of running 0.01, you should be using 0.01. My
guess is that you're looking at two different pages of doc and should stay away
from ServerInstall_v1 and stick with:
http://code.google.com/p/collective-intelligence-framework/wiki/ServerInstall
that being said, you've highlighted a few doc issues with _v1 that i'll clean
up in the next day or so.
Original comment by saxjazm...@gmail.com
on 3 May 2012 at 9:39
fyi:
https://github.com/collectiveintel/cif-client-perl/issues/7
Original comment by saxjazm...@gmail.com
on 4 May 2012 at 11:49
Original issue reported on code.google.com by
jbab...@gmail.com
on 3 May 2012 at 9:11