insidesherpa / JPMC-tech-task-1-PY3

50 stars 447 forks source link

urllib.error.HTTPError: HTTP Error 404: Not Found (when python client3.py run) #197

Open hnwang22 opened 3 years ago

hnwang22 commented 3 years ago

Issue t1

I followed all instructions, when the socket didn't work, I modified my port to 8085 from 8080 in server3.py, which fixed the issue for my server. However, when I run the client3.py in a different cmd window, it causes the error.

I've tried using both admin cmd and non-admin cmd options, as well reading past posts like #157 which still remain unresolved. Any suggestions?

The-Real-Thisas commented 3 years ago

The client is not working as it is listening at port 8080, hence the 404.

To fix the issue change line 27 from:

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

to:

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

If this is not the case I highly suggest providing a copy of the modified code for debugging.