"ValueError: Invalid endpoint " when downloading rdss3 resource via "ApiClient(..., use_native=True)"

Hi Coscine team,

I am downloading a rdss3 resource through the script:

import coscine

project_name = "AAA"
resource_name = "XXX"
directory = "YYY"
token = "ZZZ"

client = coscine.ApiClient(token, use_native=True)
project = client.project(project_name)
resource = project.resource(resource_name)
print('endpoint: ', resource.type.options.endpoint)
for file in resource.files(path=directory):
    file.download()

The property resource.type.options.endpoint is empty and causes the exception ValueError: Invalid endpoint when executing the script.

I have to switch to use_native=False to get it to work.

cheers,

Paolo

Edited by Paolo Olivucci
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information