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

301
Views
InvalidLambdaResponseException : Invalid lambda function output : Invalid JSON + React

I'm trying to implement sign up using AWS amplify. Here is the code,

import { Auth } from 'aws-amplify';

async function signUp() {
    try {
        const { user } = await Auth.signUp({
            username,
            password,
            attributes: {
                email,         
                phone_number
            }
        });
        console.log(user);
    } catch (error) {
        console.log('error signing up:', error);
    }
}

But I'm getting the following 400 error,

InvalidLambdaResponseException : Invalid lambda function output : Invalid JSON

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

This usually happens when there's a Sign-Up lambda trigger defined which is failing for some reason such as:

  • a code problem in the lambda causing a premature end
  • the response is not returned as expected: no return at all, returning with an invalid format or missing attributes in the response

You should check the lambda triggers in the userpool and check their cloudwatch logs for more information.

If the User is not created at all, most likely it's on the Pre sign-up Lambda trigger.

about 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!