API resource list error
We´ve got a ticket with this input:
could you please help me to solve an error for listing the items in my resource when I am using the Python API? I am using Coscine 0.9.5.
project = client.project('iAMB-Theses & Reports') resource = project.resource('Thesis and Reports') print(resource.metadata_form())
for file in resource.objects(): print(file.name)
Error: File ~/anaconda3/envs/iambjudas/lib/python3.9/site-packages/coscine/resource.py:447, in Resource.objects(self, path) 445 metadata: dict = {} 446 for meta in metadata_storage: --> 447 key: str = list(meta.keys())[0] 448 if f"{self.id}/{quote(data['Path'])}" in key: 449 metadata = meta
IndexError: list index out of range
@romin.benfer Can you help? If there is no personal information inside, you can also make it unconfidential, that I can tag the user to see your response