[2021-12-30 16:22:01 web.py:log_exception:1793 ERROR] Uncaught exception POST /api/automatic (::1)
    HTTPServerRequest(protocol='http', host='localhost:23020', method='POST', uri='/api/automatic', version='HTTP/1.1', remote_ip='::1')
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/urllib3/connection.py", line 175, in _new_conn
        (self._dns_host, self.port), self.timeout, **extra_kw
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/urllib3/util/connection.py", line 96, in create_connection
        raise err
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/urllib3/util/connection.py", line 86, in create_connection
        sock.connect(sa)
    ConnectionRefusedError: [Errno 61] Connection refused
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/urllib3/connectionpool.py", line 706, in urlopen
        chunked=chunked,
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/urllib3/connectionpool.py", line 394, in _make_request
        conn.request(method, url, **httplib_request_kw)
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/urllib3/connection.py", line 239, in request
        super(HTTPConnection, self).request(method, url, body=body, headers=headers)
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1229, in request
        self._send_request(method, url, body, headers, encode_chunked)
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1275, in _send_request
        self.endheaders(body, encode_chunked=encode_chunked)
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1224, in endheaders
        self._send_output(message_body, encode_chunked=encode_chunked)
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1016, in _send_output
        self.send(msg)
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 956, in send
        self.connect()
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/urllib3/connection.py", line 205, in connect
        conn = self._new_conn()
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/urllib3/connection.py", line 187, in _new_conn
        self, "Failed to establish a new connection: %s" % e
    urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb82d2505f8>: Failed to establish a new connection: [Errno 61] Connection refused
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
        timeout=timeout
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/urllib3/connectionpool.py", line 756, in urlopen
        method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/urllib3/util/retry.py", line 574, in increment
        raise MaxRetryError(_pool, url, error or ResponseError(cause))
    urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='172.21.10.25', port=9012): Max retries exceeded with url: /manage/features (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb82d2505f8>: Failed to establish a new connection: [Errno 61] Connection refused'))
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado/web.py", line 1702, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/Automatic_Handler.py", line 28, in post
        r = requests.post(url,data={'codes':self.model_name})
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/requests/api.py", line 117, in post
        return request('post', url, data=data, json=json, **kwargs)
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/requests/api.py", line 61, in request
        return session.request(method=method, url=url, **kwargs)
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/requests/sessions.py", line 542, in request
        resp = self.send(prep, **send_kwargs)
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/requests/sessions.py", line 655, in send
        r = adapter.send(request, **kwargs)
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/requests/adapters.py", line 516, in send
        raise ConnectionError(e, request=request)
    requests.exceptions.ConnectionError: HTTPConnectionPool(host='172.21.10.25', port=9012): Max retries exceeded with url: /manage/features (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb82d2505f8>: Failed to establish a new connection: [Errno 61] Connection refused'))
[2021-12-30 16:22:01 web.py:log_request:2243 ERROR] 500 POST /api/automatic (::1) 2030.64ms
[2021-12-30 16:24:16 web.py:log_exception:1793 ERROR] Uncaught exception POST /api/automatic (::1)
    HTTPServerRequest(protocol='http', host='localhost:23020', method='POST', uri='/api/automatic', version='HTTP/1.1', remote_ip='::1')
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado/web.py", line 1702, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/Automatic_Handler.py", line 34, in post
        result = self.get_auto()
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/Automatic_Handler.py", line 56, in get_auto
        result_model = add_models_logic(modelsData,self.model_name,'自动生成','自动')
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/logic.py", line 13, in add_models_logic
        if not session.find_single(models_name):
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/model/modelsData_model.py", line 10, in find_single
        return self.get_json(self.session.query(TabModelsData).filter_by(name = name))
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/model/base_model.py", line 72, in get_json
        raise TypeError('Type error of parameter')
    TypeError: Type error of parameter
[2021-12-30 16:24:16 web.py:log_request:2243 ERROR] 500 POST /api/automatic (::1) 95.09ms
[2021-12-30 16:38:40 autoreload.py:_check_file:201 INFO] /Users/dm/Desktop/python_script/model-data-test/model_data_test/settings.py modified; restarting server
[2021-12-30 16:38:47 autoreload.py:_check_file:201 INFO] /Users/dm/Desktop/python_script/model-data-test/model_data_test/settings.py modified; restarting server
[2021-12-30 16:38:55 web.py:log_exception:1793 ERROR] Uncaught exception POST /api/automatic (::1)
    HTTPServerRequest(protocol='http', host='localhost:23020', method='POST', uri='/api/automatic', version='HTTP/1.1', remote_ip='::1')
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado/web.py", line 1702, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/Automatic_Handler.py", line 34, in post
        result = self.get_auto()
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/Automatic_Handler.py", line 56, in get_auto
        result_model = add_models_logic(modelsData,self.model_name,'自动生成','自动')
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/logic.py", line 13, in add_models_logic
        if not session.find_single(models_name):
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/model/modelsData_model.py", line 10, in find_single
        return self.get_json(self.session.query(TabModelsData).filter_by(name = name))
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/model/base_model.py", line 72, in get_json
        raise TypeError('Type error of parameter')
    TypeError: Type error of parameter
[2021-12-30 16:38:55 web.py:log_request:2243 ERROR] 500 POST /api/automatic (::1) 121.79ms
[2021-12-30 16:41:16 web.py:log_exception:1793 ERROR] Uncaught exception POST /api/automatic (::1)
    HTTPServerRequest(protocol='http', host='localhost:23020', method='POST', uri='/api/automatic', version='HTTP/1.1', remote_ip='::1')
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado/web.py", line 1702, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/Automatic_Handler.py", line 34, in post
        result = self.get_auto()
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/Automatic_Handler.py", line 56, in get_auto
        result_model = add_models_logic(modelsData,self.model_name,'自动生成','自动')
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/logic.py", line 13, in add_models_logic
        if not session.find_single(models_name):
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/model/modelsData_model.py", line 10, in find_single
        return self.get_json(self.session.query(TabModelsData).filter_by(name = name))
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/model/base_model.py", line 73, in get_json
        raise TypeError('Type error of parameter')
    TypeError: Type error of parameter
[2021-12-30 16:41:16 web.py:log_request:2243 ERROR] 500 POST /api/automatic (::1) 264.12ms
[2021-12-30 17:17:30 autoreload.py:_check_file:201 INFO] /Users/dm/Desktop/python_script/model-data-test/model_data_api/model/base_model.py modified; restarting server
[2021-12-30 17:17:46 web.py:log_exception:1793 ERROR] Uncaught exception POST /api/automatic (::1)
    HTTPServerRequest(protocol='http', host='localhost:23020', method='POST', uri='/api/automatic', version='HTTP/1.1', remote_ip='::1')
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado/web.py", line 1702, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/Automatic_Handler.py", line 34, in post
        result = self.get_auto()
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/Automatic_Handler.py", line 56, in get_auto
        result_model = add_models_logic(modelsData,self.model_name,'自动生成','自动')
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/logic.py", line 13, in add_models_logic
        if not session.find_single(models_name):
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/model/modelsData_model.py", line 10, in find_single
        return self.get_json(self.session.query(TabModelsData).filter_by(name = name))
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/model/base_model.py", line 73, in get_json
        raise TypeError('Type error of parameter')
    TypeError: Type error of parameter
[2021-12-30 17:17:46 web.py:log_request:2243 ERROR] 500 POST /api/automatic (::1) 178.73ms
[2021-12-30 17:18:03 autoreload.py:_check_file:201 INFO] /Users/dm/Desktop/python_script/model-data-test/model_data_api/model/base_model.py modified; restarting server
[2021-12-30 17:18:09 web.py:log_exception:1793 ERROR] Uncaught exception POST /api/automatic (::1)
    HTTPServerRequest(protocol='http', host='localhost:23020', method='POST', uri='/api/automatic', version='HTTP/1.1', remote_ip='::1')
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado/web.py", line 1702, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/Automatic_Handler.py", line 34, in post
        result = self.get_auto()
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/Automatic_Handler.py", line 56, in get_auto
        result_model = add_models_logic(modelsData,self.model_name,'自动生成','自动')
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/logic.py", line 13, in add_models_logic
        if not session.find_single(models_name):
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/model/modelsData_model.py", line 10, in find_single
        return self.get_json(self.session.query(TabModelsData).filter_by(name = name))
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/model/base_model.py", line 73, in get_json
        raise TypeError('Type error of parameter')
    TypeError: Type error of parameter
[2021-12-30 17:18:09 web.py:log_request:2243 ERROR] 500 POST /api/automatic (::1) 456.76ms
[2021-12-30 17:19:24 web.py:log_exception:1793 ERROR] Uncaught exception POST /api/automatic (::1)
    HTTPServerRequest(protocol='http', host='localhost:23020', method='POST', uri='/api/automatic', version='HTTP/1.1', remote_ip='::1')
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado/web.py", line 1702, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/Automatic_Handler.py", line 34, in post
        result = self.get_auto()
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/Automatic_Handler.py", line 56, in get_auto
        result_model = add_models_logic(modelsData,self.model_name,'自动生成','自动')
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/logic.py", line 14, in add_models_logic
        if not session.find_single(models_name):
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/model/modelsData_model.py", line 10, in find_single
        return self.get_json(self.session.query(TabModelsData).filter_by(name = name))
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/model/base_model.py", line 73, in get_json
        raise TypeError('Type error of parameter')
    TypeError: Type error of parameter
[2021-12-30 17:19:24 web.py:log_request:2243 ERROR] 500 POST /api/automatic (::1) 1090.89ms
[2021-12-30 17:24:01 autoreload.py:_check_file:201 INFO] /Users/dm/Desktop/python_script/model-data-test/model_data_api/model/base_model.py modified; restarting server
[2021-12-30 17:24:15 web.py:log_exception:1793 ERROR] Uncaught exception POST /api/automatic (::1)
    HTTPServerRequest(protocol='http', host='localhost:23020', method='POST', uri='/api/automatic', version='HTTP/1.1', remote_ip='::1')
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado/web.py", line 1702, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/Automatic_Handler.py", line 34, in post
        result = self.get_auto()
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/Automatic_Handler.py", line 56, in get_auto
        result_model = add_models_logic(modelsData,self.model_name,'自动生成','自动')
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/logic.py", line 14, in add_models_logic
        if not session.find_single(models_name):
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/model/modelsData_model.py", line 10, in find_single
        return self.get_json(self.session.query(TabModelsData).filter_by(name = name))
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/model/base_model.py", line 73, in get_json
        raise TypeError('Type error of parameter')
    TypeError: Type error of parameter
[2021-12-30 17:24:15 web.py:log_request:2243 ERROR] 500 POST /api/automatic (::1) 551.19ms
[2021-12-30 17:26:15 autoreload.py:_check_file:201 INFO] /Users/dm/Desktop/python_script/model-data-test/model_data_test/settings.py modified; restarting server
[2021-12-30 17:27:48 log.py:info:117 INFO] SHOW VARIABLES LIKE 'sql_mode'
[2021-12-30 17:27:48 log.py:info:117 INFO] [raw sql] {}
[2021-12-30 17:27:48 log.py:info:117 INFO] SHOW VARIABLES LIKE 'lower_case_table_names'
[2021-12-30 17:27:48 log.py:info:117 INFO] [generated in 0.00032s] {}
[2021-12-30 17:27:48 log.py:info:117 INFO] SELECT DATABASE()
[2021-12-30 17:27:48 log.py:info:117 INFO] [raw sql] {}
[2021-12-30 17:27:48 log.py:info:117 INFO] BEGIN (implicit)
[2021-12-30 17:27:48 log.py:info:117 INFO] SELECT models_datail.id AS models_datail_id, models_datail.name AS models_datail_name, models_datail.content AS models_datail_content, models_datail.create_name AS models_datail_create_name, models_datail.el_expression AS models_datail_el_expression, models_datail.create_at AS models_datail_create_at, models_datail.update_at AS models_datail_update_at 
    FROM models_datail 
    WHERE models_datail.name = %(name_1)s
[2021-12-30 17:27:48 log.py:info:117 INFO] [generated in 0.00034s] {'name_1': 'ss_model_v10'}
[2021-12-30 17:27:48 log.py:info:117 INFO] INSERT INTO models_datail (name, content, create_name, el_expression, create_at, update_at) VALUES (%(name)s, %(content)s, %(create_name)s, %(el_expression)s, %(create_at)s, %(update_at)s)
[2021-12-30 17:27:48 log.py:info:117 INFO] [generated in 0.00036s] {'name': 'ss_model_v10', 'content': '自动生成', 'create_name': '自动', 'el_expression': None, 'create_at': datetime.datetime(2021, 12, 30, 17, 27, 45, 312047), 'update_at': datetime.datetime(2021, 12, 30, 17, 27, 45, 312212)}
[2021-12-30 17:27:48 log.py:info:117 INFO] COMMIT
[2021-12-30 17:27:48 log.py:info:117 INFO] SHOW VARIABLES LIKE 'sql_mode'
[2021-12-30 17:27:48 log.py:info:117 INFO] [raw sql] {}
[2021-12-30 17:27:48 log.py:info:117 INFO] SHOW VARIABLES LIKE 'lower_case_table_names'
[2021-12-30 17:27:48 log.py:info:117 INFO] [generated in 0.00064s] {}
[2021-12-30 17:27:48 log.py:info:117 INFO] SELECT DATABASE()
[2021-12-30 17:27:48 log.py:info:117 INFO] [raw sql] {}
[2021-12-30 17:27:48 log.py:info:117 INFO] BEGIN (implicit)
[2021-12-30 17:27:48 log.py:info:117 INFO] SELECT data_set.model_name AS data_set_model_name, models_datail.id AS model_id, data_set.user_count AS data_set_user_count, feature_detail.id AS feature_detail_id, feature_detail.feature_name AS feature_detail_feature_name, feature_detail.feature_type AS feature_detail_feature_type, feature_detail.feature_value AS feature_detail_feature_value, feature_detail.feature_gdp AS feature_detail_feature_gdp, feature_detail.data_type AS feature_detail_data_type, feature_detail.data_round AS feature_detail_data_round 
    FROM data_set INNER JOIN feature_detail ON data_set.feature_name = feature_detail.feature_name INNER JOIN models_datail ON models_datail.name = data_set.model_name 
    WHERE data_set.model_name = %(model_name_1)s AND feature_detail.is_active = %(is_active_1)s
[2021-12-30 17:27:48 log.py:info:117 INFO] [generated in 0.00046s] {'model_name_1': 'ss_model_v10', 'is_active_1': 1}
[2021-12-30 17:27:48 web.py:log_exception:1793 ERROR] Uncaught exception POST /api/automatic (::1)
    HTTPServerRequest(protocol='http', host='localhost:23020', method='POST', uri='/api/automatic', version='HTTP/1.1', remote_ip='::1')
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado/web.py", line 1702, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/Automatic_Handler.py", line 34, in post
        result = self.get_auto()
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/Automatic_Handler.py", line 73, in get_auto
        if result_add_userTest['code'] == 200:
    TypeError: 'NoneType' object is not subscriptable
[2021-12-30 17:27:48 web.py:log_request:2243 ERROR] 500 POST /api/automatic (::1) 584.06ms
[2021-12-30 17:29:55 log.py:info:117 INFO] SHOW VARIABLES LIKE 'sql_mode'
[2021-12-30 17:29:55 log.py:info:117 INFO] [raw sql] {}
[2021-12-30 17:29:55 log.py:info:117 INFO] SHOW VARIABLES LIKE 'lower_case_table_names'
[2021-12-30 17:29:55 log.py:info:117 INFO] [generated in 0.00049s] {}
[2021-12-30 17:29:55 log.py:info:117 INFO] SELECT DATABASE()
[2021-12-30 17:29:55 log.py:info:117 INFO] [raw sql] {}
[2021-12-30 17:29:55 log.py:info:117 INFO] BEGIN (implicit)
[2021-12-30 17:29:55 log.py:info:117 INFO] SELECT models_datail.id AS models_datail_id, models_datail.name AS models_datail_name, models_datail.content AS models_datail_content, models_datail.create_name AS models_datail_create_name, models_datail.el_expression AS models_datail_el_expression, models_datail.create_at AS models_datail_create_at, models_datail.update_at AS models_datail_update_at 
    FROM models_datail 
    WHERE models_datail.name = %(name_1)s
[2021-12-30 17:29:55 log.py:info:117 INFO] [generated in 0.00040s] {'name_1': 'ss_model_v10'}
[2021-12-30 17:29:55 log.py:info:117 INFO] SHOW VARIABLES LIKE 'sql_mode'
[2021-12-30 17:29:55 log.py:info:117 INFO] [raw sql] {}
[2021-12-30 17:29:55 log.py:info:117 INFO] SHOW VARIABLES LIKE 'lower_case_table_names'
[2021-12-30 17:29:55 log.py:info:117 INFO] [generated in 0.00037s] {}
[2021-12-30 17:29:55 log.py:info:117 INFO] SELECT DATABASE()
[2021-12-30 17:29:55 log.py:info:117 INFO] [raw sql] {}
[2021-12-30 17:29:55 log.py:info:117 INFO] BEGIN (implicit)
[2021-12-30 17:29:55 log.py:info:117 INFO] SELECT data_set.model_name AS data_set_model_name, models_datail.id AS model_id, data_set.user_count AS data_set_user_count, feature_detail.id AS feature_detail_id, feature_detail.feature_name AS feature_detail_feature_name, feature_detail.feature_type AS feature_detail_feature_type, feature_detail.feature_value AS feature_detail_feature_value, feature_detail.feature_gdp AS feature_detail_feature_gdp, feature_detail.data_type AS feature_detail_data_type, feature_detail.data_round AS feature_detail_data_round 
    FROM data_set INNER JOIN feature_detail ON data_set.feature_name = feature_detail.feature_name INNER JOIN models_datail ON models_datail.name = data_set.model_name 
    WHERE data_set.model_name = %(model_name_1)s AND feature_detail.is_active = %(is_active_1)s
[2021-12-30 17:29:55 log.py:info:117 INFO] [generated in 0.00032s] {'model_name_1': 'ss_model_v10', 'is_active_1': 1}
[2021-12-30 17:29:55 web.py:log_exception:1793 ERROR] Uncaught exception POST /api/automatic (::1)
    HTTPServerRequest(protocol='http', host='localhost:23020', method='POST', uri='/api/automatic', version='HTTP/1.1', remote_ip='::1')
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado/web.py", line 1702, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/Automatic_Handler.py", line 34, in post
        result = self.get_auto()
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/Automatic_Handler.py", line 73, in get_auto
        if result_add_userTest['code'] == 200:
    TypeError: 'NoneType' object is not subscriptable
[2021-12-30 17:29:55 web.py:log_request:2243 ERROR] 500 POST /api/automatic (::1) 399.70ms
[2021-12-30 17:34:55 log.py:info:117 INFO] SHOW VARIABLES LIKE 'sql_mode'
[2021-12-30 17:34:55 log.py:info:117 INFO] [raw sql] {}
[2021-12-30 17:34:55 log.py:info:117 INFO] SHOW VARIABLES LIKE 'lower_case_table_names'
[2021-12-30 17:34:55 log.py:info:117 INFO] [generated in 0.00038s] {}
[2021-12-30 17:34:55 log.py:info:117 INFO] SELECT DATABASE()
[2021-12-30 17:34:55 log.py:info:117 INFO] [raw sql] {}
[2021-12-30 17:34:55 log.py:info:117 INFO] BEGIN (implicit)
[2021-12-30 17:34:55 log.py:info:117 INFO] SELECT models_datail.id AS models_datail_id, models_datail.name AS models_datail_name, models_datail.content AS models_datail_content, models_datail.create_name AS models_datail_create_name, models_datail.el_expression AS models_datail_el_expression, models_datail.create_at AS models_datail_create_at, models_datail.update_at AS models_datail_update_at 
    FROM models_datail 
    WHERE models_datail.name = %(name_1)s
[2021-12-30 17:34:55 log.py:info:117 INFO] [generated in 0.00080s] {'name_1': 'ss_model_v10'}
[2021-12-30 17:34:55 log.py:info:117 INFO] SHOW VARIABLES LIKE 'sql_mode'
[2021-12-30 17:34:55 log.py:info:117 INFO] [raw sql] {}
[2021-12-30 17:34:55 log.py:info:117 INFO] SHOW VARIABLES LIKE 'lower_case_table_names'
[2021-12-30 17:34:55 log.py:info:117 INFO] [generated in 0.00050s] {}
[2021-12-30 17:34:55 log.py:info:117 INFO] SELECT DATABASE()
[2021-12-30 17:34:55 log.py:info:117 INFO] [raw sql] {}
[2021-12-30 17:34:55 log.py:info:117 INFO] BEGIN (implicit)
[2021-12-30 17:34:55 log.py:info:117 INFO] SELECT data_set.model_name AS data_set_model_name, models_datail.id AS model_id, data_set.user_count AS data_set_user_count, feature_detail.id AS feature_detail_id, feature_detail.feature_name AS feature_detail_feature_name, feature_detail.feature_type AS feature_detail_feature_type, feature_detail.feature_value AS feature_detail_feature_value, feature_detail.feature_gdp AS feature_detail_feature_gdp, feature_detail.data_type AS feature_detail_data_type, feature_detail.data_round AS feature_detail_data_round 
    FROM data_set INNER JOIN feature_detail ON data_set.feature_name = feature_detail.feature_name INNER JOIN models_datail ON models_datail.name = data_set.model_name 
    WHERE data_set.model_name = %(model_name_1)s AND feature_detail.is_active = %(is_active_1)s
[2021-12-30 17:34:55 log.py:info:117 INFO] [generated in 0.00048s] {'model_name_1': 'ss_model_v10', 'is_active_1': 1}
[2021-12-30 17:34:55 web.py:log_exception:1793 ERROR] Uncaught exception POST /api/automatic (::1)
    HTTPServerRequest(protocol='http', host='localhost:23020', method='POST', uri='/api/automatic', version='HTTP/1.1', remote_ip='::1')
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado/web.py", line 1702, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/Automatic_Handler.py", line 35, in post
        result = self.get_auto()
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/Automatic_Handler.py", line 74, in get_auto
        if result_add_userTest['code'] == 200:
    TypeError: 'NoneType' object is not subscriptable
[2021-12-30 17:34:55 web.py:log_request:2243 ERROR] 500 POST /api/automatic (::1) 446.25ms
[2021-12-31 10:25:29 web.py:log_exception:1793 ERROR] Uncaught exception POST /api/automatic (::1)
    HTTPServerRequest(protocol='http', host='localhost:23020', method='POST', uri='/api/automatic', version='HTTP/1.1', remote_ip='::1')
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado/web.py", line 1702, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/Automatic_Handler.py", line 32, in post
        self.feature_name = response['data'][self.model_name]['new']+response['data'][self.model_name]['old']
    KeyError: 'ss_assemble_v10_score,reloan_assemble_v10_score'
[2021-12-31 10:25:29 web.py:log_request:2243 ERROR] 500 POST /api/automatic (::1) 242.05ms
[2021-12-31 10:25:44 web.py:log_exception:1793 ERROR] Uncaught exception POST /api/automatic (::1)
    HTTPServerRequest(protocol='http', host='localhost:23020', method='POST', uri='/api/automatic', version='HTTP/1.1', remote_ip='::1')
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado/web.py", line 1702, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/Users/dm/Desktop/python_script/model-data-test/model_data_api/handler/Automatic_Handler.py", line 32, in post
        self.feature_name = response['data'][self.model_name]['new']+response['data'][self.model_name]['old']
    KeyError: 'ss_assemble_v10_score,reloan_assemble_v10_score'
[2021-12-31 10:25:44 web.py:log_request:2243 ERROR] 500 POST /api/automatic (::1) 2044.10ms
[2022-01-04 16:05:11 base.py:_finalize_fairy:766 ERROR] Exception during reset or similar
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pymysql/connections.py", line 756, in _write_bytes
        self._sock.sendall(data)
    BrokenPipeError: [Errno 32] Broken pipe
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 739, in _finalize_fairy
        fairy._reset(pool)
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 988, in _reset
        pool._dialect.do_rollback(self)
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 669, in do_rollback
        dbapi_connection.rollback()
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pymysql/connections.py", line 479, in rollback
        self._execute_command(COMMAND.COM_QUERY, "ROLLBACK")
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pymysql/connections.py", line 814, in _execute_command
        self._write_bytes(packet)
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pymysql/connections.py", line 760, in _write_bytes
        CR.CR_SERVER_GONE_ERROR, "MySQL server has gone away (%r)" % (e,)
    pymysql.err.OperationalError: (2006, "MySQL server has gone away (BrokenPipeError(32, 'Broken pipe'))")
[2022-01-04 16:05:11 base.py:_finalize_fairy:766 ERROR] Exception during reset or similar
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pymysql/connections.py", line 756, in _write_bytes
        self._sock.sendall(data)
    BrokenPipeError: [Errno 32] Broken pipe
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 739, in _finalize_fairy
        fairy._reset(pool)
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 988, in _reset
        pool._dialect.do_rollback(self)
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 669, in do_rollback
        dbapi_connection.rollback()
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pymysql/connections.py", line 479, in rollback
        self._execute_command(COMMAND.COM_QUERY, "ROLLBACK")
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pymysql/connections.py", line 814, in _execute_command
        self._write_bytes(packet)
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pymysql/connections.py", line 760, in _write_bytes
        CR.CR_SERVER_GONE_ERROR, "MySQL server has gone away (%r)" % (e,)
    pymysql.err.OperationalError: (2006, "MySQL server has gone away (BrokenPipeError(32, 'Broken pipe'))")
