Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network Issue #31

Open
SatwikRudra opened this issue May 20, 2020 · 5 comments
Open

Network Issue #31

SatwikRudra opened this issue May 20, 2020 · 5 comments

Comments

@SatwikRudra
Copy link

NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://localhost:8080/query?id=1'.
Function.getData
C:/Users/sai/JPMC-tech-task-3-PY3/src/DataStreamer.ts:27
24 | }
25 | }
26 |

27 | request.send();
28 | }
29 | }
30 |
View compiled
(anonymous function)
C:/Users/sai/JPMC-tech-task-3-PY3/src/App.tsx:29
26 | getDataFromServer() {
27 | let x = 0;
28 | const interval = setInterval(() => {
29 | DataStreamer.getData((serverResponds: ServerRespond[]) => {
| ^ 30 | this.setState({
31 | data: serverResponds,
32 | showGraph: true,

this is what I got error please help

@SanikaSanaye
Copy link

Open client file and server file in two seperate cmd windows. Note that you have to run the cmd for server as administrator.

Capture

@TarunMANIT
Copy link

JPMC-3
i did the same but still error

@TarunMANIT
Copy link

JPMC-2
I Opened client file and server file in two seperate cmd windows. but still same error

@SanikaSanaye
Copy link

Hi,

Change your port number to 8085 in both server as well as datastreamer file.

@rkrahulmishra887
Copy link

can you assign this task to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants