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()返回空,本地正常 #182

Open
acoooder opened this issue Oct 11, 2024 · 4 comments
Open

Comments

@acoooder
Copy link

同样的代码,本地自己的机器上跑是正常,放到阿里云香港的主机后share_file()返回都是空的.打印的返回值如下:

CreateShareLinkResponse(created_at=None, creator=None, description=None, download_count=0, drive_id=None, expiration=None, expired=False, file_id=None, file_id_list=[], preview_count=0, save_count=0, share_id=None, share_msg=None, share_name=None, share_policy=None, share_pwd='', share_url=None, status=None, updated_at=None, popularity=None, is_photo_collection=False, sync_to_homepage=False, full_share_msg=None, popularity_str=None, display_name=None, first_file=None)

这些接口对ip有限制吗?还是什么原因了解吗?谢谢.

@lemisky
Copy link
Member

lemisky commented Oct 11, 2024

image

@acoooder
Copy link
Author

报错了
image

@lemisky
Copy link
Member

lemisky commented Oct 11, 2024

那 用 text 试 试

print(response.text)

@acoooder
Copy link
Author

好吧,返回的信息保存为html后看到下图,确认香港的不让分享,谢谢了.
1728641360033

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