Bugfix
Sentry Issue: RESEARCHHUB-BACKEND-4KQ0
Occurrences: 34,649
First Seen: 2026-01-10
Culprit: paper.ingestion.services.openalex_enrichment.OpenAlexEnrichmentService.process_authors
Problem
In openalex_enrichment.py (line 244), update_or_create uses openalex_ids (an ArrayField) as the lookup:
_, created = Author.objects.update_or_create(
openalex_ids=author_instance.openalex_ids, defaults=defaults
)
Multiple Author records exist with the same openalex_ids array, causing MultipleObjectsReturned when update_or_create internally calls .get().
Bugfix
Sentry Issue: RESEARCHHUB-BACKEND-4KQ0
Occurrences: 34,649
First Seen: 2026-01-10
Culprit:
paper.ingestion.services.openalex_enrichment.OpenAlexEnrichmentService.process_authorsProblem
In
openalex_enrichment.py(line 244),update_or_createusesopenalex_ids(an ArrayField) as the lookup:Multiple Author records exist with the same
openalex_idsarray, causingMultipleObjectsReturnedwhenupdate_or_createinternally calls.get().