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

535
Views
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
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!