1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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.
répondu il y a un an
Contenus pertinents
- demandé il y a un an
- demandé il y a 2 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
any document or reference to guide towards it? Like an example?