1 Resposta
- Mais recentes
- Mais votos
- Mais comentários
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.
respondido há um ano
Conteúdo relevante
- AWS OFICIALAtualizada há um ano
- AWS OFICIALAtualizada há 2 meses
any document or reference to guide towards it? Like an example?