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

118
Views
Descodificación de axios y msgpack

No hay mucha respuesta de esto: https://stackoverflow.com/search?q=axios+msgpack y tampoco hay mucho que encontrar usando googlefu.

Estoy tratando de decodificar los datos de respuesta con msgpack usando axios pero tengo un error con TypeError: stream.getReader is not a function . Sin embargo, si uso fetch, funciona.

Usando fetch :

 async request = postData => { let response = await fetch("/api/filter-genes-by-organ", { method: "POST", body: JSON.stringify(_data), headers: { "Content-type": "application/json" }, }); return decodeAsync(response.body); }

Usando axios:

 async request = postData => { let headers = { "Content-Type": "application/json" }; let response = await axios.post(`/api/${endpoint}`, postData, { headers }, {responseType: 'text' }); return decodeAsync(response.data) }

Todavía estoy haciendo algunas pruebas y si encuentro una solución actualizaré esta pregunta, gracias.

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!