2015-04-22 56 views
0

從源代碼安裝的Ubuntu 14.01/CKAN 2.3。 UTF-8。ckan datapusher無法讀取json頭文件和類型

當將json上傳到DataStore時,Datapusher無法確定標題和類型。 頂部的文件,我試圖上傳/更新(從文本視圖我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. Her er også en lille overdækning hvor man kan søge ly, og der er en balancebane og en legeplads tæt på. I perioden 1. maj til 1. oktober lægges der brænde ud før weekender og helligdag", 
     "lat": 55.407, 
     "long": 10.3591 
     } 
    }, 

從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" from datastore. 
[Wed Apr 22 17:05:46.782179 2015] [:error] [pid 22029:tid 140315638884096] Determined headers and types: [] 
[Wed Apr 22 17:05:46.880928 2015] [:error] [pid 22029:tid 140315638884096] Successfully pushed 0 entries to "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" from datastore. 
[Wed Apr 22 17:05:51.512404 2015] [:error] [pid 22029:tid 140315919210240] Determined headers and types: [] 
[Wed Apr 22 17:05:51.614173 2015] [:error] [pid 22029:tid 140315919210240] Successfully pushed 0 entries to "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" from datastore. 
[Wed Apr 22 17:06:00.301750 2015] [:error] [pid 22029:tid 140315919210240] Determined headers and types: [] 
[Wed Apr 22 17:06:00.393785 2015] [:error] [pid 22029:tid 140315919210240] Successfully pushed 0 entries to "83a01e3f-38dc-4c05-9d97-9ba1c1a594a5". 

(本地)替換本地HTTP源 json源代碼已通過驗證使用codebeautify.org jsonvalidate Datapusher管理檢測文本文件的標題和類型。

回答

1

DataPusher只會識別表格格式,如CSV或Excel,而不是JSON文件