我的网络正常,但是却显示“本地网络请求异常” #581
Closed
wangnan789
started this conversation in
General
Replies: 1 comment
-
|
已经解决,删掉cookie,重新扫码 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
这是错误信息
python3 ./TikTokTool.py -u https://www.douyin.com/user/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx --max_connections=6 --max_tasks=5 --folderize=no --update=no --naming={create}_{id}
[ 🗻 ]:获取最新版本号中!
[ 🚩 ]:目前 14200 版本已是最新
[ 配置 ]:配置验证成功!
[ 提示 ]:异常,本地网络请求异常。 异常: 0, message='Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8',
url=URL('https://www.douyin.com/aweme/v1/web/user/profile/other/?device_platform=webapp&aid=6383&sec_user_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&cookie_enabled=true&platform=PC&downlink=10&X-Bogus=DFSzswVu9zvANxXhtYUoDM9WX7j2')
[2023-10-21 18:05:40,420] - Log.py] - ERROR: [ 提示 ]:异常,本地网络请求异常。 异常: 0, message='Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8', url=URL('https://www.douyin.com/aweme/v1/web/user/profile/other/?device_platform=webapp&aid=6383&sec_user_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&cookie_enabled=true&platform=PC&downlink=10&X-Bogus=DFSzswVu9zvANxX,Traceback (most recent call last):
File "/TikTokDownload/Util/Profile.py", line 309, in get_user_profile_info
data = await response.json()
^^^^^^^^^^^^^^^^^^^^^
File "/TikTokDownload/venv/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1105, in json
raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8', url=URL('https://www.douyin.com/aweme/v1/web/user/profile/other/?device_platform=webapp&aid=6383&sec_user_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&cookie_enabled=true&platform=PC&downlink=10&X-Bogus=DFSzswVu9zvANxXhtYUoDM9WX7j2')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/TikTokDownload/Util/Profile.py", line 453, in get_Profile
user_profile_info = await self.get_user_profile_info(self.headers, self.sec_user_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/TikTokDownload/Util/Profile.py", line 321, in get_user_profile_info
raise RuntimeError(f"本地网络请求异常。 异常: {e}\r") from e
RuntimeError: 本地网络请求异常。 异常: 0, message='Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8', url=URL('https://www.douyin.com/aweme/v1/web/user/profile/other/?device_platform=webapp&aid=6383&sec_user_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&cookie_enabled=true&platform=PC&downlink=10&X-Bogus=DFSzswVu9zvANxXhtYUoDM9WX7j2')
Beta Was this translation helpful? Give feedback.
All reactions