CRISalid-esr / svp-harvester

Sovisu+ publications harvester as microservice
Other
3 stars 2 forks source link

ScanR harvester raise an error when a non idref identifier is given but is not registered in Scanr #592

Closed E-Bara closed 1 month ago

E-Bara commented 1 month ago

Given a non idref identifier accepted by scanr harvester idhal_s:alaric-tabaries when starting to collect, the scanr harvester will raise the error: Task exception was never retrieved future: <Task finished name='scanr_harvester_retrieval_11' coro=<AbstractHarvester.run() done, defined at /home/user/PycharmProjects/svp-harvester/app/harvesters/abstract_harvester.py:103> exception=AssertionError('Unable to run Scanr harvester for a person without idref, orcid or id_hal_s')> Traceback (most recent call last): File "/home/user/PycharmProjects/svp-harvester/app/harvesters/abstract_harvester.py", line 122, in run async for raw_data in self.fetch_results(): File "/home/user/PycharmProjects/svp-harvester/app/harvesters/scanr/scanr_harvester.py", line 64, in fetch_results scanr_id = await self._get_scanr_query_parameters( File "/home/user/PycharmProjects/svp-harvester/app/harvesters/scanr/scanr_harvester.py", line 56, in _get_scanr_query_parameters assert ( AssertionError: Unable to run Scanr harvester for a person without idref, orcid or id_hal_s