insidesherpa / JPMC-tech-task-1-PY3

50 stars 447 forks source link

Socket.gaierror: [Errno 8] nodename nor servname provided, or not known #191

Open ChenyunZhang opened 3 years ago

ChenyunZhang commented 3 years ago

The server is running but encountered this issue when running client3.py. Turned off the firewall, but still not working. Google stack overflow. Didn't get the issue resolved. Any advice is appreciated.

Screen Shot 2021-02-18 at 5 23 35 PM

The-Real-Thisas commented 3 years ago

Check line 27 in client code,

QUERY = "http://localhost:8080/query?id={}"

If the client isn't able to resolve a connection to the server that error occurs.

Run the server, then visit http://localhost:8080/query?id=1 in your browser. It should be showing JSON data. If not your server is misconfigured.