You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"
},
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.
Activity
frafra commentedon Nov 18, 2020
It seems to return a gzip file containing an HTML response "Resource not found".
frafra commentedon Nov 18, 2020
It looks for an
urlin the JSON file, which is not there, asckanapi dumps datasetscreates resources like this:ckanapi/ckanapi/cli/load.py
Line 289 in 8c563b8
frafra commentedon Nov 19, 2020
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.
frafra commentedon Feb 1, 2022
ckanapi load datasetsfails even when usingckanapi action ckan_package_searchoutput, because it cannot get private datasets. CKAN returns a 404, potentially gzipped, which then gets uploaded as resource.