[ckan-dev] Sever error: An internal server error occurred

Sean Hammond sean.hammond at okfn.org
Wed Oct 10 10:13:34 UTC 2012


> I used Model API for dataset register: curl
> http://localhost/api/rest/dataset -d '{}' -H "Authorization: "

Hey, I can't comment on your code below, but this curl command works for
me to create a new dataset, when running CKAN locally with paster:

curl http://127.0.0.1:5000/api/rest/package -d '{"name": "test"}' -H "Authorization: XXX"

Tested with CKAN 2.0 alpha (current master branch) and with CKAN 1.7.1.
Just replace XXX with the API key of your CKAN user.




More information about the ckan-dev mailing list