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

Show keyError when authentication with username and password #440

Open
3 tasks
guoxiaolu1989 opened this issue Aug 30, 2023 · 5 comments
Open
3 tasks

Show keyError when authentication with username and password #440

guoxiaolu1989 opened this issue Aug 30, 2023 · 5 comments

Comments

@guoxiaolu1989
Copy link

The problem

Environment

  • pyiCloud release with the issue (pip show pyicloud): Version: 1.0.0
  • Last working pyiCloud release (if known):
  • Service causing this issue:
  • Python version (python -V): Python 3.11.2
  • Operating environment (project deps/Docker/Windows/etc.): Windows

Traceback/Error logs

Checklist

  • I've looked informations into the README.
  • I've looked informations into the pyiCloud's code.
  • I've looked informations in Google.

Additional information

@guoxiaolu1989
Copy link
Author

def get_apple_token():
from pyicloud import PyiCloudService

api = PyiCloudService('username', 'password')

File "D:\Python3\Lib\site-packages\pyicloud\base.py", line 337, in authenticate
self._webservices = self.data["webservices"]
KeyError: 'webservices'

@guoxiaolu1989 guoxiaolu1989 reopened this Aug 30, 2023
@Whylickspittle
Copy link

I meet the same issue,bro.what should we do?

@guoxiaolu1989
Copy link
Author

just replace icloud.com by icloud.com.cn in file /pyicloud/base.py

@Whylickspittle
Copy link

thanks ,it really works. 爱你老哥

@Samge0
Copy link

Samge0 commented Aug 28, 2024

只需在文件 /pyicloud/base.py 中将 icloud.com 替换为 icloud.com.cn 即可

it work for me, thank u

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

3 participants