insidesherpa / JPMC-tech-task-3

3 stars 70 forks source link

Network Issue #31

Open SatwikRudra opened 4 years ago

SatwikRudra commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

JPMC-3 i did the same but still error

TarunMANIT commented 4 years ago

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

SanikaSanaye commented 4 years ago

Hi,

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

rkrahulmishra887 commented 4 years ago

can you assign this task to me