Skip to content

loads datasets upload gibberish #176

Open

Description

@frafra

Apparently random data are uploaded (strange symbols and such). Could it be an encoding error? I am using Python 3.8.

Activity

  1. frafra commented on Nov 18, 2020

    @frafra
    ContributorAuthor

    It seems to return a gzip file containing an HTML response "Resource not found".

  2. frafra commented on Nov 18, 2020

    @frafra
    ContributorAuthor

    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"
        },
    

    f = requests.get(resource['url'],stream=True)

  3. frafra commented on Nov 19, 2020

    @frafra
    ContributorAuthor

    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.

  4. frafra commented on Feb 1, 2022

    @frafra
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions