Skip to content

Wrong 'href' for collection when not using standard ports on dataverse server #46

Open
@chStaiger

Description

@chStaiger

I am using an own testing instance of dataverse with 8080 as HTTP port.
Connecting and creation and listing of dataverses works fine.

host = 'my.server.com:8080'
connection = Connection(host, token, use_https=False)
dataverse = connection.get_dataverse('myverse')

However, when creating a new dataset or listing existing datasets I receive the following error:

datasets = dataverse.get_datasets()

InvalidURL: Failed to parse: 145.100.59.118:8080:8080

For some reason the field:

dataverse.collection.get('href')
'https://my.server.com:8080:8080/dvn/api/data-deposit/v1.1/swordv2/collection/dataverse/userverse'

is not set correctly.

Is it possible to make the port another argument in the class Connection?

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