Skip to content

TypeError: Cannot read property 'split' of undefined at obj (/var/task/node_modules/parse-multipart/multipart.js:28:15) #4

@simjaemun2

Description

@simjaemun2

Hi.

As you requested, I re-write my issue on this board.

I use your library on AWS lambda to parse multi-part, but there is an error below.

2017-07-05T12:46:46.067Z 01141173-6180-11e7-90dc-d3dd47bfb325 TypeError: Cannot read property 'split' of undefined
at obj (/var/task/node_modules/parse-multipart/multipart.js:28:15)
at process (/var/task/node_modules/parse-multipart/multipart.js:37:14)
at Object.exports.Parse (/var/task/node_modules/parse-multipart/multipart.js:87:19)
at exports.handler (/var/task/index.js:13:27)

I just copy-and paste code with your You-tube video for AWS lambda.
https://www.youtube.com/watch?v=BrYJlR0yRnw&t=183s

My aws lambda console log of bodyBuffer is below
(var bodyBuffer = new Buffer(event['body-json'].toString(), 'base64');)

2017-07-05T12:46:46.065Z 01141173-6180-11e7-90dc-d3dd47bfb325 ------WebKitFormBoundaryueWlWZHlQiRyCHAU
Content-Disposition: form-data; name="testMessage"

test message 12356
------WebKitFormBoundaryueWlWZHlQiRyCHAU
Content-Disposition: form-data; name="testFile"; filename="123.tgz"
Content-Type: application/x-compressed

� ��\Y

I have not docker image, because I just use AWS Lambda!!

If you have any question, I'll help you.
Thank you.!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions