Skip to content

Dataset.id errors b/c some entries in Dataverse.get_contents are lacking fields. #50

@felliott

Description

@felliott

Hello!

On the OSF, we've had a few users who can't connect their dataverse datasets to their projects. The symptom is that when we try to call the id property of the dataset we're getting a KeyError: 'protocol' on this line. The entry that is causing the problem has the following fields:

{u'id': 1781, u'title': u'Carl Klarner Dataverse', u'type': u'dataverse'}

This seems to have only started recently, so I'm wondering if the recent 4.10.x updates changed the "Show Contents of a Dataverse" Native endpoint to return something else. Is this something that needs to be fixed in the library or is this a regression in the DV API? Thank you!

Cheers,
@felliott

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions