Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

259
Vistas
upload large file causing Error: "Payload content length greater than maximum allowed: 1048576"

I am just trying to invoke one lambda function from another lambda function, and i am sending a payload into that lambda function. If I paas a payload of size upto 1 mb, then i don't get this error, this error arises when the payload size is greater than 1 mb only.

import * as AWS from "aws-sdk";

const lambda = new AWS.Lambda({
  region: "us-east-1",
  endpoint: "http://localhost:3002",
});

const params = {
  FunctionName: "myFunction", // the lambda function we are going to invoke
  InvocationType: "RequestResponse",
  LogType: "Tail",
  Payload: JSON.stringify(data),
 };

const lambdaResult = await lambda.invoke(params).promise();
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Lambda invocation has limits on payload (6MB).

If you want to send larger data then that, you have to save it first, for example to S3, and then have second function read it from S3. This way you just send S3 url to the second function, instead of the entire data file.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda