Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

537
Vistas
TypeError: Failed to fetch despite Postman returning a correct data

I've been trying to get this API working on one of my react native project and I keep getting failed to fetch errors. This is the code

let url = "API endpoint";

let headers = {
  Authorization:
    "working bearer token"
};

fetch(url, {
  method: "GET",
  headers: headers,
  body: null
})
  .then((response) => response.json())
  .then((data) => console.log(data))
  .catch((error) => console.log(error));

When I try this on a postman, it works just fine and returns correct data.

When the data is coming from API that is [] empty array, the fetch works again. But when there is a large data, I get a fetch error.

How can I solve this issue? Thank you

EDIT: To add, it is definitely not a CORS issue.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda