Skip to content

[BUG]json.decoder.JSONDecodeError #272

@zzylmt

Description

@zzylmt

Traceback (most recent call last):
File "c:\Users\DELL\Desktop\TikTokDownload\TikTokTool.py", line 29, in
profile.getProfile(cmd.setting())
File "c:\Users\DELL\Desktop\TikTokDownload\Util\Profile.py", line 73, in getProfile
post_name_json = Util.json.loads(Util.requests.get(url = post_url, headers=self.headers).content.decode())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

最新版本,没有修改任何代码,运行就出现这个问题

Metadata

Metadata

Assignees

Labels

故障(bug)代码问题导致的错误(Bugs caused by code problems)无效(invalid)非代码故障导致错误或异常(Non-code faults causing errors or anomalies)额外求助(help wanted)非项目代码错误的求助(Extra attention is needed)

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions