[ckan-dev] DataStore fails when doing datastore_search.

Dominik Moritz dominik.moritz at okfn.org
Wed Sep 11 17:23:36 UTC 2013


Hey,

You have to pass in a value for `resource_id` either via POST or GET. For example `http://data.kk.dk/api/3/action/datastore_search?id=foo`.

Cheers,
Dominik

On 11 Sep 2013, at 06:32, Henrik Aagaard Sørensen <BU1G at tmf.kk.dk> wrote:

> I've created a dataset via the API, following the docs: http://docs.ckan.org/en/ckan-2.1/api.html
> 
> When printing out the result from:
> response_dict['result']
> everything looks fine. And the API returns a OK when passing the code I Python:
> assert response_dict['success'] is True
> 
> But when trying to view the data from CKAN it fails:
> Failed to load resource: the server responded with a status of 409 (Conflict) http://data.kk.dk/api/3/action/datastore_search
> 
> Any idea what goes wrong?
> 
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev

Dominik Moritz
CKAN developer  |  skype: d.moritz  |  @doobly_doo
The Open Knowledge Foundation
Empowering through Open Knowledge
http://okfn.org/  |  @okfn  |  http://ckan.org  |  @CKANproject

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130911/9c1156cc/attachment-0001.sig>


More information about the ckan-dev mailing list