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

395
Vistas
error register User TypeError: Cannot read properties of undefined (reading 'status_code')

I made a form in react and I am trying to finalize the registration of a new user. It is returning the following error:

POST https:[api] 403 TypeError: Cannot read properties of undefined (reading 'status_code') at postUsers (serviceUserManager.js?t=1651765715794:15:18) at async handleSubmit (index.jsx:91:25)

my code:

export async function postUsers(user){
  try{
    const {data:{status_code,data}} = await api.post('/user',user)
    if(status_code === 201) return data
    return false
  }catch(error){
    console.log('error register User', error)
    return false
  }
}
about 4 years ago · Juan Pablo Isaza
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