diff --git a/swh/indexer/metadata.py b/swh/indexer/metadata.py --- a/swh/indexer/metadata.py +++ b/swh/indexer/metadata.py @@ -75,6 +75,7 @@ try: results = [] for item in objects.get("raw_extrinsic_metadata", []): + item.pop("type", None) # Drop key so the model conversion can happen remd = RawExtrinsicMetadata.from_dict(item) sentry_sdk.set_tag("swh-indexer-remd-swhid", remd.swhid()) results.extend(self.index(remd.id, data=remd))