Closed parmentf closed 1 month ago
Autre affiliation qui renvoie une erreur :
University of Toulouse, INPT, INP‑PURPAN, 75 voie du T.O.E.C., FR‑31076 TOULOUSE. Email: regis.vezian@purpan.fr ; UMR 7194 HNHP. CERPT Avenue Léon Jean Grégory, FR‑66720 TAUTAVEL
⚠️ ERROR 👇
item #2 [expand] <Error: [expand] <Error: item #1 [URLConnect]
Les affiliations qui ne contiennent pas uniquement une adresse simple posent souvent problème (le premier exemple n'était que la partie de l'affiliation qui suffisait à obtenir une erreur).
Affiliation complète:
Researcher with grant at Bocconi University (Milan). Member of the Tarello Institute for Legal Philosophy (Genoa). Address: Università Bocconi, Dipartimento di Studi giuridici “Angelo Sraffa”, Via Röntgen 1, 20136 Milano, Italia. E-mail: alessio.sardo@unibocconi.it
Les affiliations contenant une parenthèse ont l'air de planter systématiquement (d'où la suggestion dans la description).
Mais ce ne sont pas les seuls cas.
Ce serait bien d'ajouter les cas qu'on corrige dans les tests (mais pas forcément dans les exemples du .ini
, ça ne servirait qu'à rendre les exemples moins clairs).
une nouvelle version est disponible
Le services affiliationcountry renvoie une erreur quand on lui envoie certaines affiliations.
Cas trouvé:
Researcher with grant at Bocconi University Milan
.Pour reproduire:
Deuxième cas:
Researcher with grant at Bocconi University .
Apparemment, le code supprime le contenu des parenthèses, et fini avec un espace suivi d'un point. Ce qui fait planter le programme. Même problème avec les virgules.
Ligne incriminée: https://github.com/Inist-CNRS/web-services/blob/2bcaae97ad1dbcfd6e5539517477c35b723d9488/services/address-kit/v1/affiliationcountry/detect_country.py#L82
Suggestion: