openactive-archive / conformance-services

Harvests and normalises OpenActive Opportunity feeds to a common representation
MIT License
0 stars 0 forks source link

Error while running download-raw #87

Closed odscjames closed 3 years ago

odscjames commented 3 years ago

TypeError: Cannot read property '@id' of null
    at Function.getIdFromData (file:///home/app/src/lib/utils.js:46:21)
    at store_raw_callback (file:///home/app/src/lib/download-raw.js:39:38)

I only caught fragments as it went by but:

kind: 'league', SportId: 6, LeagueURL: 'https://www.gomammoth.co.uk/softball/regents-park/?leagueid=200',

rhiaro commented 3 years ago

I couldn't reproduce locally with the data from gomammoth I have, but added a test for this case then fixed it in #88