GithubHelp home page GithubHelp logo

NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://localhost:8080/query?id=1' about jpmc-tech-task-2 HOT 7 CLOSED

sushilca98 avatar sushilca98 commented on July 22, 2024
NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://localhost:8080/query?id=1'

from jpmc-tech-task-2.

Comments (7)

sushilca98 avatar sushilca98 commented on July 22, 2024

Server run

from jpmc-tech-task-2.

jbf-insidesherpa avatar jbf-insidesherpa commented on July 22, 2024

@sushilca98 you don't need to change anything in the server.py file. All you need to do is run it alongside the client app.

Note, running the server is via the command python datafeed/server.py. Do this in a separate command line and make sure you're running the command within the repository (i.e. your command line's present working directory is the repository). On a different command line, run the client via npm start. (this is assuming you're command line is also in the repository and you've done npm install already)

from jpmc-tech-task-2.

sushilca98 avatar sushilca98 commented on July 22, 2024

Hello Sir,
I tried the way you explained but when I run the command
C:\Users\sushi\JPMC-tech-task-2>python datafeed/server.py
Command run
command result

Then it gives a response as
Traceback (most recent call last):
File "datafeed/server.py", line 26, in
import dateutil.parser
ImportError: No module named dateutil.parser

I also ran the separate command as
C:\WINDOWS\system32>cd\Users\sushi\JPMC-tech-task-2

C:\Users\sushi\JPMC-tech-task-2>npm start

Then I was able to go to Bank and Merge Co Task 2 but when I try to start streaming data it gives me same result as

NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://localhost:8080/query?id=1'

Please check the screenshot and help me to get the result.

from jpmc-tech-task-2.

sushilca98 avatar sushilca98 commented on July 22, 2024

Never mind....after lot of try I was able to fix this issue.

from jpmc-tech-task-2.

jbf-insidesherpa avatar jbf-insidesherpa commented on July 22, 2024

Never mind....after lot of try I was able to fix this issue.

Glad you were able to fix the issue @sushilca98 . The issue you encountered regarding running the server script is also discussed in the slides in the trouble shooting section for the OS you're using. This has something to do with installing the missing python package i.e. python date-util via pip

from jpmc-tech-task-2.

srisubhashp avatar srisubhashp commented on July 22, 2024

Hello Sir,
I tried the way you explained but when I run the command
C:\Users\sushi\JPMC-tech-task-2>python datafeed/server.py
Command run
command result

Then it gives a response as
Traceback (most recent call last):
File "datafeed/server.py", line 26, in
import dateutil.parser
ImportError: No module named dateutil.parser

I also ran the separate command as
C:\WINDOWS\system32>cd\Users\sushi\JPMC-tech-task-2

C:\Users\sushi\JPMC-tech-task-2>npm start

Then I was able to go to Bank and Merge Co Task 2 but when I try to start streaming data it gives me same result as

NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://localhost:8080/query?id=1'

Please check the screenshot and help me to get the result.

I am facing the exact same error right now....
I also have the dateuntil error when the server starts
I do not know how to solve it.

Can anyone help me at the earliest...?
@sushilca98 @jbf-insidesherpa

from jpmc-tech-task-2.

srisubhashp avatar srisubhashp commented on July 22, 2024

@sushilca98 you don't need to change anything in the server.py file. All you need to do is run it alongside the client app.

Note, running the server is via the command python datafeed/server.py. Do this in a separate command line and make sure you're running the command within the repository (i.e. your command line's present working directory is the repository). On a different command line, run the client via npm start. (this is assuming you're command line is also in the repository and you've done npm install already)

Thank you very much @jbf-insidesherpa. I tried you suggestion and it started working

from jpmc-tech-task-2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.