zxxk_dl 工具运行时报 JSONDecodeError #8

Closed
opened 2026-04-09 08:24:03 +08:00 by bbj591256568 · 1 comment

问题描述 (Description)

在运行 zxxk_dl 工具时遇到了 JSONDecodeError 错误,无法正常使用。

重现步骤 (Steps to Reproduce)

  1. 进入 zxxk_dl 目录,运行 python main.py
  2. 根据提示输入了软件ID。
  3. 程序随即报错并终止。

环境信息 (Environment)

  • 操作系统:Windows 11
  • Python版本:3.10
  • 工具来源:直接从主分支下载的ZIP压缩包

错误日志 (Error Log)

D:\zxxk_dl>python main.py
ID: 57248282
D:\Python\Lib\site-packages\urllib3\connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host 'www.zxxk.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
warnings.warn(
Traceback (most recent call last):
File "D:\Python\Lib\site-packages\requests\models.py", line 978, in json
return complexjson.loads(self.text, **kwargs)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File "D:\Python\Lib\json_init_.py", line 352, in loads
return _default_decoder.decode(s)
~~~~~~~~~~~~~~~~~~~~~~~^^^
File "D:\Python\Lib\json\decoder.py", line 345, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python\Lib\json\decoder.py", line 363, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\zxxk_dl\main.py", line 81, in
main()
~~~~^^
File "D:\zxxk_dl\main.py", line 38, in main
ret=response.json()["data"]
~~~~~~~~~~~~~^^
File "D:\Python\Lib\site-packages\requests\models.py", line 982, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 2 column 1 (char 1)

### 问题描述 (Description) 在运行 `zxxk_dl` 工具时遇到了 `JSONDecodeError` 错误,无法正常使用。 ### 重现步骤 (Steps to Reproduce) 1. 进入 `zxxk_dl` 目录,运行 `python main.py`。 2. 根据提示输入了软件ID。 3. 程序随即报错并终止。 ### 环境信息 (Environment) * **操作系统**:Windows 11 * **Python版本**:3.10 * **工具来源**:直接从主分支下载的ZIP压缩包 ### 错误日志 (Error Log) D:\zxxk_dl>python main.py ID: 57248282 D:\Python\Lib\site-packages\urllib3\connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host 'www.zxxk.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings warnings.warn( Traceback (most recent call last): File "D:\Python\Lib\site-packages\requests\models.py", line 978, in json return complexjson.loads(self.text, **kwargs) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ File "D:\Python\Lib\json\__init__.py", line 352, in loads return _default_decoder.decode(s) ~~~~~~~~~~~~~~~~~~~~~~~^^^ File "D:\Python\Lib\json\decoder.py", line 345, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Python\Lib\json\decoder.py", line 363, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\zxxk_dl\main.py", line 81, in <module> main() ~~~~^^ File "D:\zxxk_dl\main.py", line 38, in main ret=response.json()["data"] ~~~~~~~~~~~~~^^ File "D:\Python\Lib\site-packages\requests\models.py", line 982, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) requests.exceptions.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
Owner

请前往
https://github.com/flt6/tools
提issue,这里是我个人存代码的地方。

另外zxxdl已经放弃维护了

请前往 https://github.com/flt6/tools 提issue,这里是我个人存代码的地方。 另外zxxdl已经放弃维护了
flt closed this issue 2026-04-19 17:41:42 +08:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: flt/tools#8
No description provided.