node-podcast-parser
node-podcast-parser copied to clipboard
TypeError: Cannot read property 'length' of undefined on many podcasts
Seems to crash during parsing
TypeError: Cannot read property 'length' of undefined
at charAt (/some/path/node_modules/sax/lib/sax.js:973:19)
at SAXParser.write (/some/path/node_modules/sax/lib/sax.js:994:11)
at parse (/some/path/node_modules/node-podcast-parser/index.js:211:12)
at Request._callback (/some/path/jobs/update-podcasts.js:36:17)
at self.callback (/some/path/node_modules/request/request.js:185:22)
at Request.emit (events.js:200:13)
at Request.onRequestError (/some/path/node_modules/request/request.js:881:8)
at ClientRequest.emit (events.js:200:13)
at Socket.socketOnEnd (_http_client.js:436:9)
at Socket.emit (events.js:205:15)
at endReadableNT (_stream_readable.js:1154:12)
at processTicksAndRejections (internal/process/task_queues.js:74:11)
(node:9101) UnhandledPromiseRejectionWarning: ReferenceError: res is not defined
at /some/path/jobs/update-podcasts.js:39:37
at parse (/some/path/node_modules/node-podcast-parser/index.js:213:5)
at Request._callback (/some/path/jobs/update-podcasts.js:36:17)
at self.callback (/some/path/node_modules/request/request.js:185:22)
at Request.emit (events.js:200:13)
at Request.onRequestError (/some/path/node_modules/request/request.js:881:8)
at ClientRequest.emit (events.js:200:13)
at Socket.socketOnEnd (_http_client.js:436:9)
at Socket.emit (events.js:205:15)
at endReadableNT (_stream_readable.js:1154:12)
at processTicksAndRejections (internal/process/task_queues.js:74:11)
(node:9101) 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: 6)
Haven't had the time to look it up yet, but I will try to do it.