insidesherpa / JPMC-tech-task-1-PY3

50 stars 447 forks source link

OSError: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions #212

Open arya177 opened 3 years ago

arya177 commented 3 years ago

C:\Users\Admin\JP Morgan\JPMC-tech-task-1-py3>python server3.py Traceback (most recent call last): File "C:\Users\Admin\JP Morgan\JPMC-tech-task-1-py3\server3.py", line 320, in run(App()) File "C:\Users\Admin\JP Morgan\JPMC-tech-task-1-py3\server3.py", line 214, in run server = ThreadedHTTPServer((host, port), RequestHandler) File "C:\hp\Python39\lib\socketserver.py", line 452, in init self.server_bind() File "C:\hp\Python39\lib\http\server.py", line 138, in server_bind socketserver.TCPServer.server_bind(self) File "C:\hp\Python39\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

C:\Users\Admin\JP Morgan\JPMC-tech-task-1-py3>python client3.py Traceback (most recent call last): File "C:\Users\Admin\JP Morgan\JPMC-tech-task-1-py3\client3.py", line 52, in quotes = json.loads(urllib.request.urlopen(QUERY.format(random.random())).read()) File "C:\hp\Python39\lib\urllib\request.py", line 214, in urlopen return opener.open(url, data, timeout) File "C:\hp\Python39\lib\urllib\request.py", line 523, in open response = meth(req, response) File "C:\hp\Python39\lib\urllib\request.py", line 632, in http_response response = self.parent.error( File "C:\hp\Python39\lib\urllib\request.py", line 561, in error return self._call_chain(args) File "C:\hp\Python39\lib\urllib\request.py", line 494, in _call_chain result = func(args) File "C:\hp\Python39\lib\urllib\request.py", line 641, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 404: Not Found

sharmila02 commented 2 years ago

same error did you find any solution?

pavani2322 commented 2 years ago

i also got same error how to find solution?