Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 第 1 次响应内容为空, 状态码: 200 最近频繁出现这个 200,但真的内容为空 #473

Open
defchen opened this issue Sep 1, 2024 · 5 comments
Assignees
Labels
BUG Something isn't working

Comments

@defchen
Copy link

defchen commented Sep 1, 2024

INFO: 172.17.0.1:56100 - "GET /api/tiktok/web/fetch_one_video?itemId=7409215120842231086 HTTP/1.1" 400 Bad Request
WARNING 第 1 次响应内容为空, 状态码: 200,
URL:https://www.tiktok.com/api/item/detail/?WebIdLastTime=1725124329&ai
d=1988&app_language=en&app_name=tiktok_web&browser_language=en-US&brows
er_name=Mozilla&browser_online=true&browser_platform=Win32&browser_vers
ion=5.0%20%28Windows%29&channel=tiktok_web&cookie_enabled=true&device_i
d=7380187414842836523&device_platform=web_pc&focus_state=true&from_page
=user&history_len=4&is_fullscreen=false&is_page_visible=true&language=e
n&os=windows&priority_region=US&referer=&region=US&root_referer=https%3
A%2F%2Fwww.tiktok.com%2F&screen_height=1080&screen_width=1920&webcast_l
anguage=en&tz_name=America%2FTijuana&msToken=MFG0ui1j29udLgqTyNhtIluf85
xxxxxxxJ1EBkjshZ4kDY4I8eDsGYrEmkWOieXlLGYDdcLgmpzhMx7q5YbguCBl&itemId=74092151
20842231086&X-Bogus=DFSzswVYmXGANGVRtIWVL

@defchen defchen added the BUG Something isn't working label Sep 1, 2024
@Evil0ctal
Copy link
Owner

可能是你的cookie被风控了,建议你更换一个cookie。

@defchen
Copy link
Author

defchen commented Sep 1, 2024

可能是你的cookie被风控了,建议你更换一个cookie。

只有https://www.tiktok.com/api/item/detail/?WebIdLastTime 这个接口不能用,我换了cookie也是一样。另外config.yaml里的 msToken:
url: 以及 strData ,
odin_tt:
url:
这几个要更换吗?

@Evil0ctal
Copy link
Owner

只需要更换cookie即可,这两天TikTok可能在修改针对Web端的风控机制,建议你更换一个TikTok账号然后登录后获取cookie进行更换,然后再次请求接口。

@Jxells
Copy link

Jxells commented Sep 7, 2024

遇到了同样的问题

@suchang1999
Copy link

换了cookie就行了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants