[datahub-discuss] Server error upon API calls

Ross Jones ross at servercode.co.uk
Tue Jan 14 16:18:45 UTC 2014


It’s almost definitely a timeout as Rufus points out.

Calling http://datahub.io/api/3/action/current_package_list_with_resources?limit=10 and then http://datahub.io/api/3/action/current_package_list_with_resources?limit=10&offset=10 works for me.

Ross


On 9 Jan 2014, at 12:46, Rufus Pollock <rufus.pollock at okfn.org> wrote:

> Note that datahub is running CKAN v2.1 not v2.2 (which is not yet officially released).
> 
> That said I believe that API call has not changed. I would note that listing *all* the datasets with resources in one go may lead to a timeout (due to the number of datasets involved) and so would suggest you use search API instead.
> 
> Rufus
> 
> PS: the best place to ask queries like this is http://help.datahub.io/ :-)
> 
> 
> On 9 January 2014 10:36, Wouter Beek <me at wouterbeek.com> wrote:
> Dear Datahub community,
> 
> I am trying out some CKAN API calls (v2.2) as documented here, but some of them do not work for me.
> 
> E.g. upon requesting current_package_list_with_resources (with none of the optional parameters), I receive a reply with HTTP status code 500.
> 
> Does this specific request work for others?
> 
> ---
> Cheers!,
> Wouter Beek.
> 
> E-mail: w.g.j.beek at vu.nl
> WWW: www.wouterbeek.com
> Tel.: 0647674624
> 
> _______________________________________________
> datahub-discuss mailing list
> datahub-discuss at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/datahub-discuss
> 
> 
> 
> 
> -- 
> Rufus Pollock
> Founder and Executive Director  |  skype: rufuspollock  |  @rufuspollock
> The Open Knowledge Foundation
> Empowering through Open Knowledge
> http://okfn.org/  |  @okfn  |  OKF on Facebook  |  Blog  |  Newsletter
> 
> 
> _______________________________________________
> datahub-discuss mailing list
> datahub-discuss at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/datahub-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/datahub-discuss/attachments/20140114/78d6afdb/attachment-0003.html>


More information about the datahub-discuss mailing list