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

112
Views
Axios response.data returning different data vs network raw response

Im using Axios and Javascript to perform simple HTTP requests. Running a simple GET request I get this raw response from the network tab of inspect.

 "options": {
    "values": [
      {
        "key": "VA",
        "value": "12345"
      },
      {
        "key": "TX",
        "value": "54321"
      },
      {
        "key": null,
        "value": "11111"
      }
    ]
  }

However Axios request.data is giving me

 "options": {
    "values": [
      {
        "key": null,
        "value": "12345"
      },
      {
        "key": null,
        "value": "54321"
      },
      {
        "key": null,
        "value": "11111"
      }
    ]
  }

Any reason why Axios is parsing this incorrectly? Thanks!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I've found the issue. I'm using Vue and the data was being manipulated incorrectly by a component before the console.log was taking place.

about 4 years ago · Juan Pablo Isaza 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!