Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

253
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!