While attempting to use the list_seed_uris() method, I encountered an error due to a missing "Seed URL" column in the Archive-It seed report CSV. As a result, the seed URIs could not be retrieved using the library. This issue may be due to recent changes or inconsistencies in the Archive-It API response format.
Error Details
- Method Used:
aic.list_seed_uris() / aic.return_all_metadata_dict()
- Error Message:
Traceback (most recent call last):
File "/Users/brianllinas/Library/CloudStorage/OneDrive-OldDominionUniversity/VMASC/Projects/archive-collections/code/test.py", line 30, in <module>
print(aic.return_all_metadata_dict())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/brianllinas/miniforge3/lib/python3.11/site-packages/aiu/archiveit_collection.py", line 575, in return_all_metadata_dict
self.load_seed_metadata()
File "/Users/brianllinas/miniforge3/lib/python3.11/site-packages/aiu/archiveit_collection.py", line 376, in load_seed_metadata
seed_report_metadata = get_seed_metadata_from_seed_report(self.collection_id, self.session)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/brianllinas/miniforge3/lib/python3.11/site-packages/aiu/archiveit_collection.py", line 274, in get_seed_metadata_from_seed_report
seed_metadata[ row["Seed URL"] ] = {}
~~~^^^^^^^^^^^^
KeyError: 'Seed URL'
Affected Collection (for context)
Expected Behavior
The list_seed_uris() method should return a list of seed URLs. If the "Seed URL" field is renamed or omitted in the CSV, the code should either handle it gracefully or raise a clearer error.
While attempting to use the
list_seed_uris()method, I encountered an error due to a missing"Seed URL"column in the Archive-It seed report CSV. As a result, the seed URIs could not be retrieved using the library. This issue may be due to recent changes or inconsistencies in the Archive-It API response format.Error Details
aic.list_seed_uris()/aic.return_all_metadata_dict()Affected Collection (for context)
Expected Behavior
The
list_seed_uris()method should return a list of seed URLs. If the"Seed URL"field is renamed or omitted in the CSV, the code should either handle it gracefully or raise a clearer error.