Fetching authorities does not succeed
Closed this issue · 1 comments
trevormunoz commented
Running npm run fetch-authorities
hits an error when processing themes. Output (trimmed)
fetched Genre(s) / recwAXAD9Ya8Ml7km
fetched Genre(s) / recwm2MQxyqixGIcr
wrote /Users/umd-laptop/Code/airwaves/static/data/genres.json
fetched Themes / rec0IfVA48yxiHYPE
fetched Themes / rec1YkhSHpdoh8NRI
fetched Themes / rec3MeiRFO3Yng4fd
fetched Themes / rec3sCyfsnObfmPXY
fetched Themes / rec3xwS6fePc1hRwQ
fetched Themes / rec9hg8h80eM7nE1Z
fetched Themes / recDmdt1zwPZG83u3
fetched Themes / recJBSIaXkbDvMXUO
fetched Themes / recJqlCSBghY9U5LS
fetched Themes / recLMOQL32jutDATf
fetched Themes / recLzj0Ad2qrcms8n
fetched Themes / recPlq8zO9oQaBbRW
fetched Themes / recQF8OnWq4TvaZMz
fetched Themes / recQcrJaD3fBEg3Yj
fetched Themes / recRLZhTHslNZBE5p
fetched Themes / recS1QmTt9vxRHvfw
fetched Themes / recTp7y45gREJ5LF1
fetched Themes / recUlDeaoe1IiVOmJ
fetched Themes / recV84faguMHlY0M0
fetched Themes / recWiFhIIjL8FrEti
fetched Themes / recY0VFEghdaiG9pc
fetched Themes / recYaqbIhzE8ZcqHB
fetched Themes / recZbs5vSWIxDV5oV
fetched Themes / recZgo4zS5bCRlIsB
fetched Themes / recbtR5FTwlskMkmR
fetched Themes / reccUGBEehYxZbDrv
fetched Themes / recd9xc9DEfw4xf59
fetched Themes / recfrbz7b2xfABAua
fetched Themes / recif53axApgnjk1z
fetched Themes / recjUvqUjorHwQFGr
fetched Themes / reckHXkzR7PCB6ezD
fetched Themes / reco32Z1tFaEdWJTJ
fetched Themes / recott9v5nlQLehve
fetched Themes / recq3LH7LiNSsWkYp
fetched Themes / recrDV3pqZFy3QKFJ
fetched Themes / recrr9U1giKAUPJJb
fetched Themes / recsElDmQfyNm2V4G
fetched Themes / rectIFmz2CAcqNkG6
fetched Themes / recuo9ezeUSC8ih3a
fetched Themes / recxwmVQhy0wsfSfC
fetched Themes / recyYVF9jom3Y0qrR
fetched Themes / reczvs80kjqxv2RTG
(node:73680) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'map' of undefined
at flattenSubjects (/Users/umd-laptop/Code/airwaves/src/commands/fetch-authorities.js:99:26)
at /Users/umd-laptop/Code/airwaves/src/commands/fetch-authorities.js:94:15
at Array.map (<anonymous>)
at flattenThemes (/Users/umd-laptop/Code/airwaves/src/commands/fetch-authorities.js:92:17)
at main (/Users/umd-laptop/Code/airwaves/src/commands/fetch-authorities.js:21:18)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
(node:73680) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:73680) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
edsu commented
Sorry for closing this prematurely @trevormunoz!