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

使用aligo读取共享链接,报错NotFound.ShareLink #149

Open
chenlip opened this issue Nov 23, 2023 · 3 comments
Open

使用aligo读取共享链接,报错NotFound.ShareLink #149

chenlip opened this issue Nov 23, 2023 · 3 comments

Comments

@chenlip
Copy link

chenlip commented Nov 23, 2023

运行环境: windows10+python3.10

应用功能:
读取云盘共享链接: https://www.aliyundrive.com/s/biv79h5iPwm

代码:
shareid = biv79h5iPwm
share_token = ali.get_share_token(shareid)
print("共享的share_token: ", share_token)

报错: 404
20:51:01.429 aligo.INFO POST https://api.aliyundrive.com/v2/share_link/get_share_token 404 141
20:51:01.431 aligo.WARNING 404 {"code":"NotFound.ShareLink","message":"The resource share_link cannot be found. Please check.","requestId":"0a00800617007438616375556e2ed3"}

@其他人, 都可以用吗?

@chenlip
Copy link
Author

chenlip commented Nov 23, 2023

我记得10月份好像还是好的,是不是有什么变化?

@lemisky
Copy link
Member

lemisky commented Nov 24, 2023

from aligo import Aligo

if __name__ == '__main__':
    ali = Aligo(name='test')
    share_id = 'biv79h5iPwm'
    share_token = ali.get_share_token(share_id)
    print(share_token)

这个代码没有发现问题,我这边正常

@chenlip
Copy link
Author

chenlip commented Nov 28, 2023

哎, 找到问题了, shareid前后有空格, 打印出来的时候很难看出来. 加了一个strip()去空格,就OK了.

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