Fontconfig warning: ignoring UTF-8: not a valid region tag 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 - - [20/Jun/2020 12:30:10] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30: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', 45112) 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 - - [20/Jun/2020 12:30:11] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30: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', 45114) 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 - - [20/Jun/2020 12:30:12] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30: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', 45116) 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 - - [20/Jun/2020 12:30:13] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30: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', 45118) 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 - - [20/Jun/2020 12:30:14] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30: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', 45120) 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 - - [20/Jun/2020 12:30:15] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30: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', 45122) 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 - - [20/Jun/2020 12:30:16] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30: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', 45124) 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 - - [20/Jun/2020 12:30:17] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30: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', 45126) 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 - - [20/Jun/2020 12:30:18] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30: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', 45128) 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 - - [20/Jun/2020 12:30:19] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30: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', 45130) 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 - - [20/Jun/2020 12:30:20] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30: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', 45132) 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 - - [20/Jun/2020 12:30:21] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30: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', 45134) 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 - - [20/Jun/2020 12:30:22] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30: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', 45136) 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 - - [20/Jun/2020 12:30:23] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30: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', 45138) 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 - - [20/Jun/2020 12:30:24] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30:24] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 45140) 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 - - [20/Jun/2020 12:30:25] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30:25] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 45142) 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 - - [20/Jun/2020 12:30:26] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30:26] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 45144) 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 - - [20/Jun/2020 12:30:27] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30:27] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 45146) 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 - - [20/Jun/2020 12:30:28] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30:28] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 45148) 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 - - [20/Jun/2020 12:30:29] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30:29] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 45150) 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 - - [20/Jun/2020 12:30:30] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30:30] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 45152) 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 - - [20/Jun/2020 12:30:31] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30:31] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 45154) 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 - - [20/Jun/2020 12:30:32] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30:32] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 45156) 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 - - [20/Jun/2020 12:30:33] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30:33] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 45158) 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 - - [20/Jun/2020 12:30:34] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30:34] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 45160) 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 - - [20/Jun/2020 12:30:35] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30:35] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 45162) 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 - - [20/Jun/2020 12:30:36] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30:36] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 45164) 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 - - [20/Jun/2020 12:30:37] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30:37] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 45166) 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 - - [20/Jun/2020 12:30:38] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30:38] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 45168) 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 - - [20/Jun/2020 12:30:39] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30: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', 45170) 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 - - [20/Jun/2020 12:30:40] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30: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', 45172) 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 - - [20/Jun/2020 12:30:41] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30: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', 45174) 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 - - [20/Jun/2020 12:30:42] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30: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', 45176) 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 - - [20/Jun/2020 12:30:43] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30: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', 45178) 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 - - [20/Jun/2020 12:30:44] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30: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', 45180) 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 - - [20/Jun/2020 12:30:45] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30: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', 45182) 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 - - [20/Jun/2020 12:30:46] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30: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', 45184) 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 - - [20/Jun/2020 12:30:47] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30: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', 45186) 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 - - [20/Jun/2020 12:30:48] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30: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', 45188) 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 - - [20/Jun/2020 12:30:49] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [20/Jun/2020 12:30: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', 45190) 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")