-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read property 'split' of undefined at obj (/var/task/node_modules/parse-multipart/multipart.js:28:15) #4
Comments
ok, thanku for your time. Will review your case in short, please keep a little bit patience because im overloaded in this moment. |
ok. i see you use the video https://www.youtube.com/watch?v=BrYJlR0yRnw&t=183s. please ensure your apigateway is working fine and it is passing the event object to your lambda function. in order to do such debugging task please add this line to your lambda function: // put this line in the very beggining of your lambda function, in order to see what is received from your apigateway, and copy paste the result in this comments section using the source code formatter. |
I attached the console log as you requested!! 2017-07-05T23:17:58.956Z 2f01d974-61d8-11e7-9b9a-87f6b4f45038 event= |
ok. have a little bit of patience, im stucked in other stuff, and will put my eye in your case very soon (tomorrow). thanku :) |
@simjaemun2 Hello! right now im on it. I can reproduce your problem in my side, the solution is on the way :) |
dear @simjaemun2
Later, i will publish a new release and you can then proceed as you normally do via "npm install". By now, please proceed manually. |
Okay, but I'm on vacation now. I'll check your comment after next week. 👍 |
Hi. But, Your code has some bugs. I sent to my nodejs handler on AWS lambda with multipart/form-data that I attached before. When I print console log of data part in case of NOT_A_FILE, ` var parts = multipart.Parse(bodyBuffer, boundary);
result is like below code.
The correct data is here.
I used Restlet Client that is Chrome Extension to send RESTful API with multipart/form-data. |
parts with branch 4 are parsed this way:
The file is parsed correctly, but the fields are not. Data Buffer in the fields parts is as @simjaemun2 mentioned the "Boundary" i.e. ------WebKitFormBoundaryQOr5Z2KzAgHBK Field's data is captured in a different step. |
Hi, I have a similar error.. was working fine and i can't figure out what changed.. |
It solved the problem. can you please release the new version? |
I'm getting the same error. Was the fix released to master? |
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.
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.!!
The text was updated successfully, but these errors were encountered: