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

491
Views
Custom React App - Fetch API error when deploying to Heroku

I've built a small app in React (not using CRA).

I've deployed to Heroku and it's uploaded fine, but I'm having one issue in which a static JSON file I created myself isn't fetching (Works fine locally).

I'm getting the below error:

enter image description here

Here is my folder structure:

enter image description here

I've tried creating a public folder outside of src but that didn't help either.

I have a basic Express setup:

enter image description here

Thanks

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Make sure your JSON files are accessible. it sounds like you are trying to fetch a file and returning an HTML/XML response. it usually happens when your file has some error.

about 4 years ago · Juan Pablo Isaza Report
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!