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

share_file_saveto_drive 保存分享文件到指定的网盘 卡死 #133

Open
lionCong opened this issue Aug 10, 2023 · 8 comments
Open

Comments

@lionCong
Copy link

操作系统信息
python 3.9
。。。

错误描述
有一定几率 整个程序卡死。必须重启 py 才可以。
。。。

@lemisky
Copy link
Member

lemisky commented Aug 10, 2023

详细说说?

@lionCong
Copy link
Author

try:
file_id = aligo.share_file_saveto_drive(file_id=file_id, share_token=aligo.get_share_token(share_id=share_id)).file_id
print("得到 file_id",file_id)

后面的这个 print 就没有输出,整个 py 进程就死在这里。

@lionCong
Copy link
Author

平均 20 次 有一次能卡死

@lionCong
Copy link
Author

我用的是香港的虚拟主机

@lemisky
Copy link
Member

lemisky commented Aug 10, 2023

aligo.get_share_token 会不会太频繁了,

@lemisky
Copy link
Member

lemisky commented Aug 10, 2023

你在国内网络试试

@lemisky
Copy link
Member

lemisky commented Aug 10, 2023

尝试设置 ali = Aligo(requests_timeout=10)

@lionCong
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