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

96
Views
How to read file from readableStream response in a fetch

I'm pulling this file with fetch get request enter image description here

I need to read the file in the incoming file and press the textarea. However, I am not able to convert the returned response (text file) to json and assign it to a variable.

    const getMedias = async (id) => {
    const response = await fetch(`xxx.com/asset/${id}/`);

    await checkError(response);

    const responseBody = await response.json();
    return responseBody.result;
};

This is how my get request is and this is the response that returns When the response from the request is printed to the console, it looks like this

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!