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

221
Views
¿Qué debo hacer para corregir este error al enviar el formulario al servidor?

¡Que la pases bien! Uso axios para enviar una solicitud de publicación a la api http://freerealapi.com/ trabajo en base al documento pero me da un error 400 ¿Qué debo hacer?

 const buildDiscount = async token => { let data = new FormData(); data.append('title', keyCodes); data.append('text', 'test text'); data.append('image', file); data.append('tags', 'one,two,three'); try { const res = await axios.post('https://api.freerealapi.com/panel/blogs/', data, { headers: { 'Content-Type': 'multipart/form-data', Authorization: `Bearer ${token}`, }, }) console.log(res.data); } catch (error) { console.log(error.response); } }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Lo más probable es que a esta función le falten esas 2 variables adicionales (keyCodes, file), ¿puede proporcionar esas entradas a la función? Esa es probablemente la razón por la cual la solicitud está mal formada.

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!