[ckan-dev] json preview

Philippe Duchesne pduchesne at gmail.com
Wed May 22 10:29:45 UTC 2013


Thank you Dominik.

it improves the error feedback, and now i found out the problem: the json
resources at stake do not support HEAD requests, which are used in
controller.py
f.i.
http://data.police.uk/api/crimes-street/all-crime?lat=52.629729&lng=-1.131592&date=2011-08

maybe something to consider, as it is quite frequent (apparently) to lack
HEAD support.

best,

--p.



On Tue, May 21, 2013 at 8:58 PM, Dominik Moritz <dominik.moritz at okfn.org>wrote:

> Hi,
>
> This is a known problem with chunked responses. It has been fixed in [1].
>
> Cheers,
> Dominik
>
> [1] https://github.com/okfn/ckan/pull/896
>
> On 21 May 2013, at 11:09, Philippe Duchesne <pduchesne at gmail.com> wrote:
>
> > Hello everyone,
> >
> > i am currently working on a fresh package install of ckan 2.0 (with the
> > added harvester plugin) and i am having trouble with the json preview
> > feature.
> >
> > I have the json_preview, recline_preview and resource_proxy enabled.
> > When trying to preview JSON datasets, i get different kind of errors,
> like
> > "null" or "XMLHttpRequest Exception 101" displayed in the preview area.
> > I haven't been able to correlate the different behaviours with the nature
> > of the json files. All i can tell is that the remote JSON resources are
> > accessible.
> >
> > I notice the same kind of behaviour occurs on the demo instance (
> > demo.ckan.org) with JSON resources.
> >
> > Is this a known problem?
> > Am I doing something wrong?
> > Is there a log somewhere, esp. for the proxy extension, to check for
> > internal errors? (i checked ckan_default.error.log, but found nothing
> > relevant)
> >
> > thank you,
> >
> > --p.
> > _______________________________________________
> > 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
>
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130522/29a7f43b/attachment-0001.html>


More information about the ckan-dev mailing list