You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@rhiaro Do you think both these exceptions are expected in the normaliser? The second one looks to be a data quality issue that emanates from the publisher's data, the first one I'm not so sure about...
2021-03-01T17:31:57.606527945Z app[normaliser-worker.3]: Error running data through pipe NormaliseSchedulePipe
2021-03-01T17:31:57.606566024Z app[normaliser-worker.3]: TypeError: eventSchedule is not iterable
2021-03-01T17:31:57.606574680Z app[normaliser-worker.3]: TypeError: eventSchedule is not iterable
2021-03-01T17:31:57.606579369Z app[normaliser-worker.3]: at NormaliseSchedulePipe.run (file:///app/src/lib/pipes/normalise-schedule-pipe.js:22:28)
2021-03-01T17:31:57.606583251Z app[normaliser-worker.3]: at PipeLine.run (file:///app/src/lib/pipeline.js:15:46)
2021-03-01T17:31:57.606586695Z app[normaliser-worker.3]: at runMicrotasks (<anonymous>)
2021-03-01T17:31:57.606591002Z app[normaliser-worker.3]: at processTicksAndRejections (internal/process/task_queues.js:97:5)
2021-03-01T17:31:57.606594882Z app[normaliser-worker.3]: at async normalise_data_publisher_feed (file:///app/src/lib/normalise-data.js:95:34)
2021-03-01T17:31:57.606598423Z app[normaliser-worker.3]: Saved as done and error saved
2021-03-01T17:31:57.032778982Z app[normaliser-worker.3]: at encodeURIComponent (<anonymous>)
2021-03-01T17:31:57.032783018Z app[normaliser-worker.3]: at Object.encode (/app/node_modules/uritemplate/bin/uritemplate.js:148:29)
2021-03-01T17:31:57.032802288Z app[normaliser-worker.3]: at Object.encodeCharacter (/app/node_modules/uritemplate/bin/uritemplate.js:179:27)
2021-03-01T17:31:57.032807277Z app[normaliser-worker.3]: at Object.encodeLiteral (/app/node_modules/uritemplate/bin/uritemplate.js:346:111)
2021-03-01T17:31:57.032812139Z app[normaliser-worker.3]: at new LiteralExpression (/app/node_modules/uritemplate/bin/uritemplate.js:439:39)
2021-03-01T17:31:57.032816137Z app[normaliser-worker.3]: at Function.parse (/app/node_modules/uritemplate/bin/uritemplate.js:615:30)
2021-03-01T17:31:57.032819717Z app[normaliser-worker.3]: at Field.detectType (/app/node_modules/@openactive/data-model-validator/src/classes/field.js:165:40)
2021-03-01T17:31:57.032823562Z app[normaliser-worker.3]: at FieldsCorrectTypeRule.validateField (/app/node_modules/@openactive/data-model-validator/src/rules/core/fields-correct-type-rule.js:209:34)
2021-03-01T17:31:57.032827080Z app[normaliser-worker.3]: at FieldsCorrectTypeRule.validate (/app/node_modules/@openactive/data-model-validator/src/rules/rule.js:34:40)
2021-03-01T17:31:57.032830548Z app[normaliser-worker.3]: at runMicrotasks (<anonymous>)
2021-03-01T17:31:57.032832802Z app[normaliser-worker.3]: Saved as done and error saved
I looked at some of these a while back, not sure how much progress I made, but I think the first one arises because sometimes eventSchedule is an object not an array of objects - in the case where there is only one event in the schedule. I think this might just need to be wrapped in an array, iirc.
Expected normaliser errors?
@rhiaro Do you think both these exceptions are expected in the normaliser? The second one looks to be a data quality issue that emanates from the publisher's data, the first one I'm not so sure about...
The text was updated successfully, but these errors were encountered: