Fontconfig warning: ignoring UTF-8: not a valid region tag INFO:gensim.models.utils_any2vec:loading projection weights from ./__data__/model_ru.bin INFO:gensim.models.utils_any2vec:loading projection weights from ./__data__/model_en.bin INFO:gensim.models.utils_any2vec:loaded (200000, 300) matrix from ./__data__/model_ru.bin INFO:gensim.models.utils_any2vec:loaded (200000, 300) matrix from ./__data__/model_en.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 - - [18/Jun/2020 09:09:49] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:09: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', 34720) 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 - - [18/Jun/2020 09:09:50] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:09: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', 34722) 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 - - [18/Jun/2020 09:09:51] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:09: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', 34724) 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 - - [18/Jun/2020 09:09:52] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:09: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', 34726) 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 - - [18/Jun/2020 09:09:53] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:09: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', 34728) 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 - - [18/Jun/2020 09:09:54] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:09: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', 34730) 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 - - [18/Jun/2020 09:09:55] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:09: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', 34732) 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 - - [18/Jun/2020 09:09:56] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:09: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', 34734) 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 - - [18/Jun/2020 09:09:57] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:09: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', 34736) 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 - - [18/Jun/2020 09:09:58] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:09: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', 34738) 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 - - [18/Jun/2020 09:09:59] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:09: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', 34740) 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 - - [18/Jun/2020 09:10:00] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:10: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', 34742) 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 - - [18/Jun/2020 09:10:01] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:10: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', 34744) 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 - - [18/Jun/2020 09:10:02] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:10: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', 34746) 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 - - [18/Jun/2020 09:10:03] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:10: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', 34748) 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 - - [18/Jun/2020 09:10:04] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:10: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', 34750) 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 - - [18/Jun/2020 09:10:05] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:10: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', 34752) 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 - - [18/Jun/2020 09:10:06] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:10: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', 34754) 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 - - [18/Jun/2020 09:10:07] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:10: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', 34756) 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 - - [18/Jun/2020 09:10:08] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:10: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', 34758) 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 - - [18/Jun/2020 09:10:09] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:10: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', 34760) 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 - - [18/Jun/2020 09:10:10] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:10: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', 34762) 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 - - [18/Jun/2020 09:10:11] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:10: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', 34764) 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 - - [18/Jun/2020 09:10:12] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:10: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', 34766) 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 - - [18/Jun/2020 09:10:13] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:10: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', 34768) 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 - - [18/Jun/2020 09:10:14] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:10: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', 34770) 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 - - [18/Jun/2020 09:10:15] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:10: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', 34772) 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 - - [18/Jun/2020 09:10:16] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:10: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', 34774) 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 - - [18/Jun/2020 09:10:17] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:10: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', 34776) 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 - - [18/Jun/2020 09:10:18] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:10: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', 34778) 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 - - [18/Jun/2020 09:10:19] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:10: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', 34780) 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 - - [18/Jun/2020 09:10:20] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:10: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', 34782) 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 - - [18/Jun/2020 09:10:21] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:10: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', 34784) 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 - - [18/Jun/2020 09:10:22] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:10: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', 34786) 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 - - [18/Jun/2020 09:10:23] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:10: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', 34788) 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 - - [18/Jun/2020 09:10:24] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:10: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', 34790) 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 - - [18/Jun/2020 09:10:25] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:10: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', 34792) 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 - - [18/Jun/2020 09:10:26] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:10: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', 34794) 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 - - [18/Jun/2020 09:10:27] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:10: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', 34796) 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 - - [18/Jun/2020 09:10:28] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - 127.0.0.1 - - [18/Jun/2020 09:10: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', 34798) 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")