{"name":"test_talented_person[case9]","status":"broken","statusDetails":{"message":"requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)","trace":"self = <Response [500]>, kwargs = {}\n\n def json(self, **kwargs):\n r\"\"\"Returns the json-encoded content of a response, if any.\n\n :param \\*\\*kwargs: Optional arguments that ``json.loads`` takes.\n :raises requests.exceptions.JSONDecodeError: If the response body does not\n contain valid json.\n\"\"\"\n\n if not self.encoding and self.content and len(self.content) > 3:\n # No encoding set. JSON RFC 4627 section 3 states we should expect\n # UTF-8, -16 or -32. Detect which one to use; If the detection or\n # decoding fails, fall back to `self.text` (using charset_normalizer to make\n # a best guess).\n encoding = guess_json_utf(self.content)\n if encoding is not None:\n try:\n return complexjson.loads(self.content.decode(encoding), **kwargs)\n except UnicodeDecodeError:\n # Wrong UTF codec detected; usually because it's not UTF-8\n # but some other 8-bit codec. This is an RFC violation,\n # and the server didn't bother to tell us what codec *was*\n # used.\n pass\n except JSONDecodeError as e:\n raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)\n\n try:\n> return complexjson.loads(self.text, **kwargs)\n\nvenv\\lib\\site-packages\\requests\\models.py:971: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\nC:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python38\\lib\\json\\__init__.py:357: in loads\n return _default_decoder.decode(s)\nC:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python38\\lib\\json\\decoder.py:337: in decode\n obj, end = self.raw_decode(s, idx=_w(s, 0).end())\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\n\nself = <json.decoder.JSONDecoder object at 0x0000023D28F9B0D0>\ns = 'Error: Failed to connect to 172.18.85.63 port 3007 after 3004 ms: Couldn\\'t connect to server{\"code\":0,\"msg\":\"\\\\u751f\\\\u6210\\\\u7535\\\\u5b50\\\\u56fe\\\\u7247\\\\u5931\\\\u8d25,\\\\u8bf7\\\\u68c0\\\\u67e5\\\\u670d\\\\u52a1\\\\u6216\\\\u53c2\\\\u6570\",\"data\":{}}'\nidx = 0\n\n def raw_decode(self, s, idx=0):\n\"\"\"Decode a JSON document from ``s`` (a ``str`` beginning with\n a JSON document) and return a 2-tuple of the Python\n representation and the index in ``s`` where the document ended.\n\n This can be used to decode a JSON document from a string that may\n have extraneous data at the end.\n\n\"\"\"\n try:\n obj, end = self.scan_once(s, idx)\n except StopIteration as err:\n> raise JSONDecodeError(\"Expecting value\", s, err.value) from None\nE json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)\n\nC:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python38\\lib\\json\\decoder.py:355: JSONDecodeError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <Interface.TestCases.test_talented_Person.TestTalentedPerson object at 0x0000023D2C462D30>\ncase = {'extract_data': None, 'id': 10, 'method': 'post', 'request_data': '{\\n \"id\": \"64509\",\\n \"actual_time\": \"2023-08-06 22:22:22\"\\n}', ...}\n\n @pytest.mark.parametrize(\"case\", cases)\n def test_talented_person(self, case):\n logger.info(\"********** 执行用例{}:{} **********\".format(case[\"id\"], case[\"title\"]))\n # 第二步,替换request_data中的未知数\n case = replace_case_by_regular(case)\n # print(case)\n\n # 第三步,执行请求\n if hasattr(EnvData, \"token\"):\n> response = send_request(case[\"method\"], case[\"url\"], case[\"request_data\"], token=getattr(EnvData, \"token\"))\n\nTestCases\\test_talented_Person.py:49: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\nCommon\\handle_requests.py:32: in send_request\n logger.info(\"响应数据为:{}\".format(resp.json()))\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\n\nself = <Response [500]>, kwargs = {}\n\n def json(self, **kwargs):\n r\"\"\"Returns the json-encoded content of a response, if any.\n\n :param \\*\\*kwargs: Optional arguments that ``json.loads`` takes.\n :raises requests.exceptions.JSONDecodeError: If the response body does not\n contain valid json.\n\"\"\"\n\n if not self.encoding and self.content and len(self.content) > 3:\n # No encoding set. JSON RFC 4627 section 3 states we should expect\n # UTF-8, -16 or -32. Detect which one to use; If the detection or\n # decoding fails, fall back to `self.text` (using charset_normalizer to make\n # a best guess).\n encoding = guess_json_utf(self.content)\n if encoding is not None:\n try:\n return complexjson.loads(self.content.decode(encoding), **kwargs)\n except UnicodeDecodeError:\n # Wrong UTF codec detected; usually because it's not UTF-8\n # but some other 8-bit codec. This is an RFC violation,\n # and the server didn't bother to tell us what codec *was*\n # used.\n pass\n except JSONDecodeError as e:\n raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)\n\n try:\n return complexjson.loads(self.text, **kwargs)\n except JSONDecodeError as e:\n # Catch JSON-related errors and raise as requests.JSONDecodeError\n # This aliases json.JSONDecodeError and simplejson.JSONDecodeError\n> raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)\nE requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)\n\nvenv\\lib\\site-packages\\requests\\models.py:975: JSONDecodeError"},"parameters":[{"name":"case","value":"{'id': 10, 'title': '财务回款审核', 'method': 'post', 'url': '/presale/order-main-received/adopt', 'request_data': '{\\n \"id\": \"#order_main_received_id#\",\\n \"actual_time\": \"2023-08-06 22:22:22\"\\n}', 'extract_data': None}"}],"start":1693985071750,"stop":1693985077181,"uuid":"d94c4f42-b50a-4dc3-84c0-709e114c76d8","historyId":"79ebf5b6fdf5eb4a97d6bcf6bbc96026","testCaseId":"ef55938d36fbad49876f2088544970c8","fullName":"TestCases.test_talented_Person.TestTalentedPerson#test_talented_person","labels":[{"name":"tag","value":"@pytest.mark.usefixtures('get_newPhone')"},{"name":"parentSuite","value":"TestCases"},{"name":"suite","value":"test_talented_Person"},{"name":"subSuite","value":"TestTalentedPerson"},{"name":"host","value":"PC-20230211OWWC"},{"name":"thread","value":"10892-MainThread"},{"name":"framework","value":"pytest"},{"name":"language","value":"cpython3"},{"name":"package","value":"TestCases.test_talented_Person"}]}