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

234
Views
Uncaught (in promise) TypeError: Converting circular structure to JSON In Client side when posting to backend
const handleAddItem = event =>{
    event.preventDefault()
    const item = {
        name: event.target.name.value,
        description: event.target.name.value,
        img: event.target.img,
        category: event.target.category.value,
        email: user.email,
        quantity: event.target.quantity.value,
        price: event.target.price.value,
        suppName: event.target.supplierName.value
    }
    console.log(item);
    axios.post('the Url', item)
    .then(response => {
        console.log(response)
        const {data} = response;
        if(data.insertedId){
            alert('User Added Successfully')
        event.target.reset();
        }
    })

This is my code and the qrror is shown when I try to post my array. Don't understand why happening. my backend is totally good. the title of the error is

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!