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

重复尝试 3 次,抖音登录创作者中心后,依旧无响应 #76

Closed
LeeDebug opened this issue Dec 29, 2024 · 6 comments
Closed

Comments

@LeeDebug
Copy link

本地运行效果如下

(social-auto-upload) PS D:\Code\Python\LLM\LLMS\linyqh\social-auto-upload> python .\get_douyin_cookie.py     
BASE_DIR:  D:\Code\Python\LLM\LLMS\linyqh\social-auto-upload
account_file:  D:\Code\Python\LLM\LLMS\linyqh\social-auto-upload\cookies\douyin_uploader\account.json
2024-12-29 22:43:19 | INFO: [+] cookie文件不存在或已失效,即将自动打开浏览器,请扫码登录,登陆后会自动生成cookie文件
2024-12-29 22:43:28 | INFO: 登录二维码已保存至:D:\Code\Python\LLM\LLMS\linyqh\social-auto-upload\cookies\douyin_uploader\douyin_login_qr.png
获取接收者失败,状态码: 401
错误信息: {"detail":"Not authenticated"}
无法获取有效的 user_id,消息发送失败
获取接收者失败,状态码: 401
错误信息: {"detail":"Not authenticated"}
无法获取有效的 user_id,图片文件发送失败
2024-12-29 22:43:28 | INFO: 请在浏览器中完成登录操作
2024-12-29 22:43:58 | ERROR: 发生错误: Page.wait_for_selector: Timeout 30000ms exceeded.
Call log:
  - waiting for locator("text=身份验证") to be visible
  -     - waiting for" https://creator.douyin.com/?is_new_connect=0&is_new_user=0" navigation to finish...
  -     - navigated to "https://creator.douyin.com/?is_new_connect=0&is_new_user=0"

2024-12-29 22:44:29 | ERROR: 发生错误: Page.wait_for_selector: Timeout 30000ms exceeded.
Call log:
  - waiting for locator("text=身份验证") to be visible
  -     - waiting for" https://creator.douyin.com/creator-micro/home" navigation to finish...
  -     - navigated to "https://creator.douyin.com/creator-micro/home"

2024-12-29 22:45:00 | ERROR: 发生错误: Page.wait_for_selector: Timeout 30000ms exceeded.
Call log:
  - waiting for locator("text=身份验证") to be visible
@dreammis
Copy link
Owner

建议你先demo程序运行下,排查下是项目问题还是,自己设置的问题

@LeeDebug
Copy link
Author

恩恩,是的。我现在就是用 demo 跑的呢 大佬

@LeeDebug
Copy link
Author

方便加您一下 v 嘛?想请教一下

@LeeDebug
Copy link
Author

获取接收者失败,状态码: 401
错误信息: {"detail":"Not authenticated"}
无法获取有效的 user_id,消息发送失败
获取接收者失败,状态码: 401
错误信息: {"detail":"Not authenticated"}
无法获取有效的 user_id,图片文件发送失败
2024-12-29 22:43:28 | INFO: 请在浏览器中完成登录操作

这几个日志是在刚打开浏览器的一瞬间就打印出来了,好像是因为接口直接报错了?所以导致后面的流程没有走下去?

@LeeDebug
Copy link
Author

我知道了,是在 send_wechat.py 中调用 minio 的时候出现了错误

@LeeDebug
Copy link
Author

已自行解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants