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

401
Views
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
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!