[ECODP-dev] json request fails for unkown reason

Bert Van Nuffelen bert.van.nuffelen at tenforce.com
Wed Jan 23 21:24:47 UTC 2013


Hi John,

On odp.tenforce.com we have tried to upload the jrc.zip package to the
CKAN instance.
CKAN returns for every request an error.

At
/applications/ecodp/users/ecodp/rdf2ckan/work

a test script

call_ckan.sh

and a extracted json file

test.json

is there

./call_ckan.sh test.json

The test script does not accept the json.

root at ecodp-odp3 work]# ./call_ckan.sh test.json
"Bad request - JSON Error: Error decoding JSON data. Error:
ValueError('Unterminated string starting at: line 1 column 29 (char
29)',) JSON data extracted from the request:
'{\"resources\":[{\"description\":\"Compressed archive of geotiff maps
of Pinus cembra suitability for the current situation (year
2000'"[root at ecodp-odp3 work]# vim call_ckan.sh


to see the rdf2ckan output

cd /applications/ecodp/users/ecodp/rdf2ckan/
cp work/done-zip/jrc*.zip work/import
cd bin
./rdf2ckan.sh


-- 
Bert Van Nuffelen

Semantic Technologies Software Architect at TenForce
www.tenforce.be

Bert.Van.Nuffelen at tenforce.com
Office: +32 (0)16 31 48 60
Mobile:+32 479 06 24 26
skype: bert.van.nuffelen




More information about the ecodp-dev mailing list