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

126
Views
Los parámetros de la matriz $http POST se enviaron incorrectamente en la carga útil: Angular JS

Estoy asignando una matriz a una clave que debe enviarse en la carga útil de la llamada POST en mi aplicación angular js. por ejemplo, como a continuación.

 this.selectedCtlIds =[877, 982, 091, 112]; function saveFormSettings() { let data = this.settings; // have various key from the GET call data.statusIdToBeChanged = this.selectedCtlIds; console.log(data.statusIdToBeChanged, 'test '); // works fine Service.updateSettings(data).then(function (resp) { //POST CALL HERE } } function updateSettings(param) { return $http({ method: 'POST', url: url + '/setting', params: param }) }

la carga útil esperada por api es como statusIdToBeChanged: [877, 982, 091, 112]

en cambio, se pasa como a continuación cuando verifiqué la carga útil de la red

 statusIdToBeChanged[]: 284 statusIdToBeChanged[]: 982 statusIdToBeChanged[]: 091 statusIdToBeChanged[]: 112

debido a que la api está fallando. No estoy seguro de por qué es así en la carga útil.

about 4 years ago · Santiago Gelvez
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!