[ckan-dev] Datastore setup testing...
Lime, Steve D (MNIT)
Steve.Lime at state.mn.us
Wed Apr 24 17:51:06 UTC 2013
Hi all: We're just getting going with CKAN but are running into issues getting the datastore setup. Everything seems to go fine with the install (CKAN version 2.1a, local PostgreSQL database) but testing the setup isn't working as expected as described here http://docs.ckan.org/en/latest/datastore-setup.html#test-the-set-up. Specifically the datastore_create test... Issuing the following:
curl -X POST http://127.0.0.1:80/api/3/action/datastore_create -H "Authorization: valid-API-key" -d '{"resource_id": "test", "fields": [ {"id": "a"}, {"id": "b"} ], "records": [ { "a": 1, "b": "xyz"}, {"a": 2, "b": "zzz"} ]}'
returns the following JSON:
{"help": "...removed for brevity...", "success": false, "error": {"message": "Not found: Resource \"test\" was not found.", "__type": "Not Found Error"}}
I've not found any reference to this error message in the docs or in the list archives. It doesn't really make sense since the call should create the resource. Any ideas what might cause this? Any guidance appreciated!
Steve
StEVE LIME | DATA & Applications MANAGER
MN.IT Services @ MnDNR
651-259-5473 (w) | 651-297-4946 (f) | steve.lime at state.mn.us<mailto:Your.name at state.mn.us>
[cid:image002.jpg at 01CE40EA.6310E6A0]<http://www.mn.gov/oet>
Information Technology for Minnesota Government | mn.gov/oet<http://www.mn.gov/oet>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130424/fb9e62a8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 1611 bytes
Desc: image002.jpg
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130424/fb9e62a8/attachment-0002.jpg>
More information about the ckan-dev
mailing list