[ckan-discuss] HTTP 500 error when adding a new package using the API
David Raznick
kindly at gmail.com
Sun May 22 19:50:20 BST 2011
Hello
I do not seem to get a 500 for that request with my api key.
The only issue is that there is already a package named "test" in the
database. The reply to the request gives me.
{"name": ["Package name already exists in database"]}
So it may be something odd with the api key.
David
On Sun, May 22, 2011 at 12:29 AM, Maali, Fadi <fadi.maali at deri.org> wrote:
> Hello,
>
> I am getting a 500 Internal server error when trying to add a new
> package to http://test.ckan.net
>
> I followed the instructions described in the API documentation
> http://packages.python.org/ckan/api.html#example-of-usage
>
> the command I am using is:
> curl http://test.ckan.net/api/rest/package -d '{"name":"test",
> "title":"Test package"}' -H "Authorization:MY-API-KEY"
>
> Is something wrong in the request?
>
> Thanks,
> Fadi
>
> _______________________________________________
> ckan-discuss mailing list
> ckan-discuss at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-discuss/attachments/20110522/b4fed278/attachment.htm>
More information about the ckan-discuss
mailing list