insidesherpa / JPMC-tech-task-1-PY3

50 stars 447 forks source link

[WinError 10013] #195

Open charitha-iddum opened 3 years ago

charitha-iddum commented 3 years ago

Traceback (most recent call last): File "server3.py", line 320, in run(App()) File "server3.py", line 214, in run server = ThreadedHTTPServer((host, port), RequestHandler) File "C:\Users\chari\AppData\Local\Programs\Python\Python38-32\lib\socketserver.py", line 452, in init self.server_bind() File "C:\Users\chari\AppData\Local\Programs\Python\Python38-32\lib\http\server.py", line 138, in server_bind socketserver.TCPServer.server_bind(self) File "C:\Users\chari\AppData\Local\Programs\Python\Python38-32\lib\socketserver.py", line 466, in server_bind self.socket.bind(self.server_address) OSError: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions

hkstone14 commented 3 years ago

Hi Charitha,

You can change port number from 8080 to 8085 in server and client files. server3.py --> line 205 --> port = 8085

The-Real-Thisas commented 3 years ago

Keep in mind to make the correct changes to the client URL to reflect the changes to the port.

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

to

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