python /home/admin/mtr/script_for_cron.py -j default -m 20 -a 'python3 /home/admin/workarea/git/API/TestApiRouteJs/routeTestState/apiTestRoute.py -d /home/admin/workarea/git/API/TestApiRouteJs/routeTestState/jsonFile/ -f /home/admin/workarea/git/API//TestApiRouteJs/routeTestState/jsonFile/ -u https://marlene.fotonower.com/ -v -i /home/admin/workarea/git/API/TestApiRouteJs/routeTestState/list_test.json ' -s Test_Route_marlene -M 0 -S 0 -U 90,80,95 import MySQLdb succeeded Ceci est un script de test api (test route) Access successful. 0%| | 0/37 [00:00 excluded value = param_json excluded value = list_steps JSON TEST : OK Status OK : 200 : 402 ms : api/v1/datou/search?limit=1 #https://marlene.fotonower.com/api/v1/datou/steps {'param': ['?limit=1'], 'json': 'api_v1_datou_steps.json', 'exclude_paths': ["[93]['nb_input']", "[93]['nb_output']"]} <_io.TextIOWrapper name='/home/admin/workarea/git/API/TestApiRouteJs/routeTestState/jsonFile/api_v1_datou_steps.json' mode='r' encoding='UTF-8'> excluded value = [93]['nb_input'] excluded value = [93]['nb_output'] JSON TEST : NOT OK {'values_changed': {"root[18]['nb_output']": {'new_value': 2, 'old_value': 1}, "root[106]['nb_input']": {'new_value': 5, 'old_value': 4}}, 'iterable_item_added': {'root[118]': {'step_type': 'paddle_seg', 'nb_input': 1, 'nb_output': 2, 'list_input': [], 'list_output': []}, 'root[119]': {'step_type': 'sam', 'nb_input': 1, 'nb_output': 2, 'list_input': [], 'list_output': []}, 'root[120]': {'step_type': 'styleGAN3', 'nb_input': 1, 'nb_output': 1, 'list_input': [], 'list_output': []}, 'root[121]': {'step_type': 'pytorch_transformer', 'nb_input': 1, 'nb_output': 2, 'list_input': [], 'list_output': []}, 'root[122]': {'step_type': 'merge_dashboard', 'nb_input': 2, 'nb_output': 1, 'list_input': [], 'list_output': []}, 'root[123]': {'step_type': 'client', 'nb_input': 1, 'nb_output': 1, 'list_input': [], 'list_output': []}}} Here we are ! l 154 Status OK : 200 : 124 ms : api/v1/datou/steps?limit=1 #https://marlene.fotonower.com/api/v1/datou/current {'param': ['?'], 'json': 'api_v1_datou_current.json', 'exclude_paths': ["['current']"]} <_io.TextIOWrapper name='/home/admin/workarea/git/API/TestApiRouteJs/routeTestState/jsonFile/api_v1_datou_current.json' mode='r' encoding='UTF-8'> excluded value = ['current'] Traceback (most recent call last): File "/home/admin/workarea/git/API/TestApiRouteJs/routeTestState/apiTestRoute.py", line 265, in status_list = urlTestStatus(param_url_test, opt.url, opt.file_dir, opt.filename, opt.feed_id, opt.verbose, opt.werbose, opt.self_log) File "/home/admin/workarea/git/API/TestApiRouteJs/routeTestState/apiTestRoute.py", line 135, in urlTestStatus url_resp = json.loads(content_url.decode('utf-8')) File "/usr/lib/python3.8/json/__init__.py", line 357, in loads return _default_decoder.decode(s) File "/usr/lib/python3.8/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 3 column 1 (char 2) Command exited with non-zero status 1 0.47user 0.55system 0:15.63elapsed 6%CPU (0avgtext+0avgdata 57348maxresident)k 0inputs+48outputs (0major+13544minor)pagefaults 0swaps