Skip to content

TypeError: Cannot read property 'split' of undefined #6#7

Open
neillturner wants to merge 2 commits into
toshihirock:masterfrom
neillturner:master
Open

TypeError: Cannot read property 'split' of undefined #6#7
neillturner wants to merge 2 commits into
toshihirock:masterfrom
neillturner:master

Conversation

@neillturner
Copy link
Copy Markdown

getting these errors calling this npm from the code at
https://github.com/prithviraju/aws-elb-logs-to-elasticsearch/blob/master/index.js

TypeError: Cannot read property 'split' of undefined
at module.exports (/var/task/node_modules/elb-log-parser/index.js:69:45)
at Transform.recordStream._transform (/var/task/index.js:148:25)
at Transform._read (_stream_transform.js:186:10)
at Transform._write (_stream_transform.js:174:12)
at doWrite (_stream_writable.js:397:12)
at writeOrBuffer (_stream_writable.js:383:5)
at Transform.Writable.write (_stream_writable.js:290:11)
at LineStream.ondata (_stream_readable.js:639:20)
at emitOne (events.js:116:13)
at LineStream.emit (events.js:211:7)

happen on line:
parsed['backend_port'] = parsed.backend.split(":")[1];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant