Fontconfig warning: ignoring UTF-8: not a valid region tag iteration : 0, arg: tgnews.py iteration : 1, arg: server iteration : 2, arg: 3000 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_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... INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:22: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', 35584) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:22: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', 35586) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:22: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', 35588) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:22: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', 35590) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:22: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', 35592) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:22: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', 35594) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:22: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', 35596) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:22: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', 35598) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:22: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', 35600) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:22: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', 35602) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:22: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', 35604) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35606) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35608) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35610) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35612) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35614) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35616) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35618) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35620) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35622) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35624) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35626) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35628) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35630) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35632) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35634) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35636) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35638) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35640) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35642) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35644) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35646) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35648) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35650) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35652) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35654) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35656) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35658) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35660) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35662) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35664) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35666) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded 127.0.0.1 - - [18/Jun/2020 08:23: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', 35668) Traceback (most recent call last): File "./server_app.py", line 80, in do_GET self._set_response() TypeError: _set_response() missing 1 required positional argument: 'status' 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 84, 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' ---------------------------------------- INFO:root:GET request, Path: /threads?period=300&lang_code=en&category=any Headers: Host: 127.0.0.1:3000 Accept: */* Connection: Keep-Alive Keep-Alive: 300 Content-Length: 0 Content-Type: application/x-www-form-urlencoded