recommendation API server fails to fill cache with the following error. This is after we marked page like https://meta.wikimedia.org/wiki/Wikiproject_Women%27s_Health/Vital_articles with page-collection marker
DEBUG : recommendation : fetcher : get : GET: https://www.wikidata.org/w/api.php?action=wbgetentities&format=json&props=sitelinks&sites=zh-min-nanwiki&titles=Bah-l%C5%ABi|B%C3%A1-tah|B%C3%AC-luh|Cheng-li%C3%BB-chi%C3%BA|Chh%C3%A0i-se|Chh%C3%AC-juh|Chh%C3%B2%CD%98|Chi-ku-la%CC%8Dt|Chi%C3%BA|Hu%CC%8Dt-th%C3%B4|I%C3%A2m|Ka-pi|Kh%C3%AC-ch%C3%BAi|K%C3%A1u-ch%C3%A0n-thah|Leng|M%C3%A1-l%C3%AAng-ch%C3%AE|Nn%CC%84g_%28chia%CC%8Dh-mi%CC%8Dh%29|Pasta|Phang-bi%CC%8Dt|Ph%C3%A1ng|Ph%C3%B4-t%C3%B4|Ph%C3%B4-t%C3%B4-chi%C3%BA|Rum|Si%CC%8Dt-i%C5%8Dng-i%C3%BB|Thn%CC%82g|T%C3%AA|%C3%8Dm-li%C4%81u&formatversion=2, {'user-agent': 'WMF Recommendation API (https://recommend.wmcloud.org/; leila@wikimedia.org)', 'Host': 'www.wikidata.org'}
ERROR : recommendation : fetcher : get_articles_by_titles : Error fetching articles by QIDs: {'code': 'param-missing', 'info': 'Either provide the Item "ids" or pairs of "sites" and "titles" for corresponding page', 'messages': [{'name': 'wikibase-api-illegal-ids-or-sites-titles-selector', 'parameters': [], 'html': 'Either provide the Item "ids" or pairs of "sites" and "titles" for corresponding page'}], 'docref': 'See https://www.wikidata.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of APIdeprecations and breaking changes.'}
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/opt/work/recommendation-api/recommendation/utils/cache_updater.py", line 89, in start
asyncio.run(update_page_collection_cache())
File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/opt/work/recommendation-api/recommendation/utils/cache_updater.py", line 80, in update_page_collection_cache
await live_page_collection.fetch_articles()
File "/opt/work/recommendation-api/recommendation/api/translation/models.py", line 187, in fetch_articles
results = await asyncio.gather(*tasks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/work/recommendation-api/recommendation/external_data/fetcher.py", line 603, in get_candidates_in_collection_page
wikidata_articles.extend(articles)
TypeError: 'NoneType' object is not iterableThe following API access fails: