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

186
Views
Trying to get a react-app that's not mine to work which cannot find a localhost url

I have a react app that isn't mine (a former employee) and I'm still quite new to react. I need to get the app to work so it retrieves data from a SQL database. At the moment the app can't find a request URL from itself called http://localhost//FleetManagement//Api/Default.aspx?method=GetCustomers

The react app gives the following error:

enter image description here

Or in text:

SyntaxError: Unexpected end of JSON input
(anonymous function)
C:/CodeRacvsolar/react-app/src/App.tsx:201
  198 | 
  199 | api.getCustomers(
  200 |   (req: XMLHttpRequest) => {
> 201 |     let getCustomersResponse: interfaces.GetCustomersResponse = JSON.parse(req.responseText);
  202 | ^
  203 |     this.setState({
  204 |       data: getCustomersResponse,
View compiled

XMLHttpRequest.req.onreadystatechange
C:/CodeRacvsolar/react-app/src/api/api.tsx:54
  51 | 
  52 |        if (req.readyState === XMLHttpRequest.DONE) { 
  53 |            if (onComplete) {
> 54 |                onComplete(req)
  55 | ^          }
  56 |        }
  57 |        
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!