Open frafra opened 3 years ago
It seems to return a gzip file containing an HTML response "Resource not found".
It looks for an url
in the JSON file, which is not there, as ckanapi dumps datasets
creates resources like this:
{
"description": "Coordinates of all sites included in the dataset",
"format": "TXT",
"name": "s-ptarmigan-counts-coordinates-txt",
"path": "data/s-ptarmigan-counts-coordinates-.txt",
"title": "S_ptarmigan_counts_coordinates.txt"
},
In addition to making dump compatible with loads, a suggestion could be to raise a warning or an error when accessing a resource with an HTTP error.
ckanapi load datasets
fails even when using ckanapi action ckan_package_search
output, because it cannot get private datasets. CKAN returns a 404, potentially gzipped, which then gets uploaded as resource.
Apparently random data are uploaded (strange symbols and such). Could it be an encoding error? I am using Python 3.8.