Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

97
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda