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_en.bin INFO:gensim.models.utils_any2vec:loading projection weights from ./__data__/model_ru.bin INFO:gensim.models.utils_any2vec:loaded (200000, 300) matrix from ./__data__/model_en.bin INFO:gensim.models.utils_any2vec:loaded (200000, 300) matrix from ./__data__/model_ru.bin ./venv/lib/python3.6/site-packages/sklearn/base.py:334: UserWarning: Trying to unpickle estimator KMeans from version 0.22.1 when using version 0.23.1. This might lead to breaking code or invalid results. Use at your own risk. UserWarning) INFO:root:Starting httpd... 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 - - [20/Jun/2020 11:47: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', 59084) 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 - - [20/Jun/2020 11:47: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', 59086) 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 - - [20/Jun/2020 11:47: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', 59088) 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 - - [20/Jun/2020 11:47: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', 59090) 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 - - [20/Jun/2020 11:47: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', 59092) 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 - - [20/Jun/2020 11:47: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', 59094) 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 - - [20/Jun/2020 11:47: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', 59096) 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 - - [20/Jun/2020 11:47: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', 59098) 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 - - [20/Jun/2020 11:47: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', 59100) 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 - - [20/Jun/2020 11:47: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', 59102) 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 - - [20/Jun/2020 11:47: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', 59104) 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 - - [20/Jun/2020 11:47: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', 59106) 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 - - [20/Jun/2020 11:47: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', 59108) 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 - - [20/Jun/2020 11:47: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', 59110) 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 - - [20/Jun/2020 11:47: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', 59112) 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 - - [20/Jun/2020 11:47: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', 59114) 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 - - [20/Jun/2020 11:47: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', 59116) 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 - - [20/Jun/2020 11:47: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', 59118) 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 - - [20/Jun/2020 11:47: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', 59120) 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 - - [20/Jun/2020 11:47: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', 59122) 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 - - [20/Jun/2020 11:47: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', 59124) 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 - - [20/Jun/2020 11:47: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', 59126) 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 - - [20/Jun/2020 11:47: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', 59128) 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 - - [20/Jun/2020 11:47: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', 59130) 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 - - [20/Jun/2020 11:47: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', 59132) 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 - - [20/Jun/2020 11:47: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', 59134) 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 - - [20/Jun/2020 11:47: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', 59136) 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 - - [20/Jun/2020 11:47: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', 59138) 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 - - [20/Jun/2020 11:47:32] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 59140) 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 - - [20/Jun/2020 11:47:33] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 59142) 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 - - [20/Jun/2020 11:47:34] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 59144) 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 - - [20/Jun/2020 11:47:35] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 59146) 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 - - [20/Jun/2020 11:47:36] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 59148) 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 - - [20/Jun/2020 11:47:37] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 59150) 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 - - [20/Jun/2020 11:47:38] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 59152) 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 - - [20/Jun/2020 11:47:39] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 59154) 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 - - [20/Jun/2020 11:47:40] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 59156) 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 - - [20/Jun/2020 11:47:41] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 59158) 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 - - [20/Jun/2020 11:47:42] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 59160) 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 - - [20/Jun/2020 11:47:43] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 59162) 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 - - [20/Jun/2020 11:47:44] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 59164) 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 - - [20/Jun/2020 11:47:45] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 59166) 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 - - [20/Jun/2020 11:47:46] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 59168) 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 - - [20/Jun/2020 11:47:47] "GET /threads?period=300&lang_code=en&category=any HTTP/1.1" 503 - ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 59170) 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