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

296
Vistas
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 Respuestas
Responde la pregunta

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