INFO:gensim.models.utils_any2vec:loading projection weights from ./__data__/model_en.bin INFO:gensim.models.utils_any2vec:loading projection weights from ./__data__/model_ru.bin INFO:gensim.models.utils_any2vec:loaded (200000, 300) matrix from ./__data__/model_en.bin INFO:gensim.models.utils_any2vec:loaded (200000, 300) matrix from ./__data__/model_ru.bin ./venv/lib/python3.6/site-packages/sklearn/base.py:334: UserWarning: Trying to unpickle estimator KMeans from version 0.22.1 when using version 0.23.1. This might lead to breaking code or invalid results. Use at your own risk. UserWarning) INFO:root:Starting httpd... 127.0.0.1 - - [29/Jun/2020 16:58:39] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:58:39] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58692) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:58:40] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:58:40] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58694) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:58:41] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:58:41] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58696) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:58:42] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:58:42] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58698) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:58:43] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:58:43] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58700) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:58:44] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:58:44] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58702) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:58:45] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:58:45] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58704) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:58:46] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:58:46] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58706) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:58:47] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:58:47] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58708) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:58:48] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:58:48] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58710) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:58:49] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:58:49] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58712) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:58:50] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:58:50] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58714) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:58:51] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:58:51] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58716) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:58:52] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:58:52] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58718) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:58:53] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:58:53] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58720) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:58:54] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:58:54] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58722) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:58:55] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:58:55] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58724) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:58:56] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:58:56] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58726) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:58:57] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:58:57] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58728) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:58:58] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:58:58] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58730) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:58:59] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:58:59] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58732) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:59:00] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:59:00] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58734) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:59:01] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:59:01] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58736) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:59:02] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:59:02] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58738) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:59:03] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:59:03] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58740) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:59:04] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:59:04] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58742) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:59:05] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:59:05] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58744) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:59:06] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:59:06] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58746) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:59:07] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:59:07] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58748) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:59:08] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:59:08] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58750) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:59:09] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:59:09] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58752) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:59:10] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:59:10] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58754) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:59:11] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:59:11] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58756) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:59:12] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:59:12] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58758) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:59:13] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:59:13] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58760) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:59:14] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:59:14] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58762) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:59:15] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:59:15] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58764) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:59:16] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:59:16] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58766) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:59:17] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:59:17] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58768) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:59:18] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:59:18] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58770) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:59:19] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:59:19] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58772) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:59:20] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:59:20] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58774) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:59:21] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:59:21] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58776) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:59:22] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:59:22] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58778) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' ---------------------------------------- 127.0.0.1 - - [29/Jun/2020 16:59:23] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [29/Jun/2020 16:59:23] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 58780) Traceback (most recent call last): File "./server_app.py", line 65, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable") File "/usr/local/lib/python3.6/socketserver.py", line 803, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/socketserver.py", line 654, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.6/socketserver.py", line 364, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.6/socketserver.py", line 724, in __init__ self.handle() File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request() File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request method() File "./server_app.py", line 88, in do_GET self.wfile.write("HTTP/1.1 503 Service Unavailable")