ckan datapusher fails to read json header and types -
ubuntu 14.01 / ckan 2.3 installed source. utf-8.
datapusher can't determine headers , types when uploading json datastore. top of file i'm trying upload/update (as shown text view ckan):
{ "type": "featurecollection", "features": [ { "type": "feature", "id": "baal_og_grillpladser.2", "geometry": { "type": "point", "coordinates": [ 10.3591, 55.407 ] }, "geometry_name": "wkb_geometry", "properties": { "navn": "Åløkkeskoven ved den gamle golfbane ", "beskrivelse": "bål- og grillplads på græsarealer ved Åløkkeskoven tæt på søhusstien. er også en lille overdækning hvor man kan søge ly, og der er en balancebane og en legeplads tæt på. perioden 1. maj til 1. oktober lægges der brænde ud før weekender og helligdag", "lat": 55.407, "long": 10.3591 } },
from datapusher.error.log:
[wed apr 22 17:05:46.381327 2015] [:error] [pid 22029:tid 140315638884096] fetching from: (local)/dataset/98fc8c64-6dfb-4602-98fc-1f9b2ff56bab/resource/83a01e3f-38dc-4c05-9d97-9ba1c1a594a5/download/cusersljidesktopbalpladser.json [wed apr 22 17:05:46.744956 2015] [:error] [pid 22029:tid 140315638884096] deleting "83a01e3f-38dc-4c05-9d97-9ba1c1a594a5" datastore. [wed apr 22 17:05:46.782179 2015] [:error] [pid 22029:tid 140315638884096] determined headers , types: [] [wed apr 22 17:05:46.880928 2015] [:error] [pid 22029:tid 140315638884096] pushed 0 entries "83a01e3f-38dc-4c05-9d97-9ba1c1a594a5". [wed apr 22 17:05:51.055612 2015] [:error] [pid 22029:tid 140315919210240] fetching from: (local)/dataset/98fc8c64-6dfb-4602-98fc-1f9b2ff56bab/resource/83a01e3f-38dc-4c05-9d97-9ba1c1a594a5/download/cusersljidesktopbalpladser.json [wed apr 22 17:05:51.367964 2015] [:error] [pid 22029:tid 140315919210240] deleting "83a01e3f-38dc-4c05-9d97-9ba1c1a594a5" datastore. [wed apr 22 17:05:51.512404 2015] [:error] [pid 22029:tid 140315919210240] determined headers , types: [] [wed apr 22 17:05:51.614173 2015] [:error] [pid 22029:tid 140315919210240] pushed 0 entries "83a01e3f-38dc-4c05-9d97-9ba1c1a594a5". [wed apr 22 17:06:00.024942 2015] [:error] [pid 22029:tid 140315919210240] fetching from: (local)/dataset/98fc8c64-6dfb-4602-98fc-1f9b2ff56bab/resource/83a01e3f-38dc-4c05-9d97-9ba1c1a594a5/download/cusersljidesktopbalpladser.json [wed apr 22 17:06:00.260876 2015] [:error] [pid 22029:tid 140315919210240] deleting "83a01e3f-38dc-4c05-9d97-9ba1c1a594a5" datastore. [wed apr 22 17:06:00.301750 2015] [:error] [pid 22029:tid 140315919210240] determined headers , types: [] [wed apr 22 17:06:00.393785 2015] [:error] [pid 22029:tid 140315919210240] pushed 0 entries "83a01e3f-38dc-4c05-9d97-9ba1c1a594a5".
(local) replaces local http source json source has been verified using codebeautify.org jsonvalidate datapusher manage detect headers , types text files.
the datapusher recognize tabular formats csv or excel, not json files
Comments
Post a Comment