1回答
- 新しい順
- 投票が多い順
- コメントが多い順
0
The error message you're seeing is due to the fact that the AWS Lambda function is trying to parse the entire HTTP request body as JSON, but it's actually multipart/form-data. Multipart/form-data is primarily used for uploading files and it packages the data in a different way than a typical JSON payload.
In your case, your Lambda function is expecting a JSON payload, but it's getting multipart/form-data, which includes the binary data of the file and other form data. This is why you're seeing the parsing error.
To solve this, you need to handle the parsing of the multipart/form-data within your Lambda function. AWS Lambda does not natively support multipart/form-data. You need to manually parse the multipart/form-data.
回答済み 1年前
関連するコンテンツ
- AWS公式更新しました 2年前
- AWS公式更新しました 10ヶ月前
any document or reference to guide towards it? Like an example?