Exception occurred during processing of request from ('127.0.0.1', 57129)
Traceback (most recent call last):
File "C:\Python39\lib\socketserver.py", line 683, in process_request_thread
self.finish_request(request, client_address)
File "C:\Python39\lib\socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "C:\Python39\lib\socketserver.py", line 747, in __init__
self.handle()
File "C:\Users\ASUS\PycharmProjects\server.py", line 50, in handle
data = json.loads(data_res.decode())
File "C:\Python39\lib\json\__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Python39\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Python39\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
----------------------------------------
Traceback (most recent call last):
File "C:\Users\ASUS\PycharmProjects\server.py", line 183, in <module>
server.serve_forever()
File "C:\Python39\lib\socketserver.py", line 232, in serve_forever
ready = selector.select(poll_interval)
File "C:\Python39\lib\selectors.py", line 324, in select
r, w, _ = self._select(self._readers, self._writers, [], timeout)
File "C:\Python39\lib\selectors.py", line 315, in _select
r, w, x = select.select(r, w, w, timeout)
KeyboardInterrupt
Process finished with exit code -1073741510 (0xC000013A: interrupted by Ctrl+C)
В браузере пользователь тоже видит IP и порт, куда идёт запрос
Таким вот образом