Open bosconb opened 1 year ago
@bosconb thanks for reporting. Looks like changing domain was not enough to get icloudpd working from China. I'll keep looking for solutions.
Someone pushed a PR to my container to fix the problem: https://github.com/boredazfcuk/docker-icloudpd/pull/265/commits/d0ffe24212cea558a3b9eead8f2d413c62b170f3
It seems they have forked picklepete’s pyicloud and got it working with that: https://github.com/qzchenwl/pyicloud
Some users have reported other issues though, such as Live Photos not working iirc. I guess this is due to picklepete’s version not having nbroadbent’s changes in it.
Hopefully you can figure out what changes from qzchenwl’s fork need bringing over to nbroadbent’s pyicloud so a fully working version can be made.
Thanks.
same error
试试 go 翻译的版本,至少保证在 cn 可以工作 try go port of pyicloud, work with domain=cn
Same error:
iCloud username/email: c***@example.com
2023-04-09 12:29:09 DEBUG Authenticating...
iCloud Password:
2023-04-09 12:29:17 INFO Two-step/two-factor authentication is required!
Traceback (most recent call last):
File "exec.py", line 63, in <module>
File "click/core.py", line 1130, in __call__
File "click/core.py", line 1055, in main
File "click/core.py", line 1657, in invoke
File "click/core.py", line 1404, in invoke
File "click/core.py", line 760, in invoke
File "icloudpd/base.py", line 288, in main
File "icloudpd/base.py", line 571, in core
File "icloudpd/authentication.py", line 48, in authenticate_
File "icloudpd/authentication.py", line 55, in request_2sa
File "pyicloud_ipd/base.py", line 266, in trusted_devices
File "requests/sessions.py", line 600, in get
File "pyicloud_ipd/base.py", line 105, in request
File "pyicloud_ipd/base.py", line 127, in _raise_error
pyicloud_ipd.exceptions.PyiCloudAPIResponseError: statusCode = UnknownServerError, IOException sending request https://accountservice.p00.prod.me.com:443/api/get_challenge_devices, accountservice.p00.prod.me.com
[1] Failed to execute script 'exec' due to unhandled exception!
Overview
i've been using icloudpd in china mainland . months ago ,i cannt success anymore because of domain. Today i've upgrade icloudpd to 1.9.0 by pip, and use new
--domain
parameter,it should be no problem ,however,still showed Error info.Steps to Reproduce
pip install --upgrade icloudpd
use icloudpd command,before i complete the 2FA step,it shows:
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/bin/icloudpd", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.10/site-packages/click-8.1.3-py3.10.egg/click/core.py", line 1130, in call
return self.main(args, kwargs)
File "/usr/local/lib/python3.10/site-packages/click-8.1.3-py3.10.egg/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.10/site-packages/click-8.1.3-py3.10.egg/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, ctx.params)
File "/usr/local/lib/python3.10/site-packages/click-8.1.3-py3.10.egg/click/core.py", line 760, in invoke
return __callback(args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/icloudpd/base.py", line 275, in main
icloud = authenticator(domain)(
File "/usr/local/lib/python3.10/site-packages/icloudpd/authentication.py", line 31, in authenticate_
icloud = pyicloud_ipd.PyiCloudService(
File "/usr/local/lib/python3.10/site-packages/pyicloud_ipd/base.py", line 204, in init
self.authenticate()
File "/usr/local/lib/python3.10/site-packages/pyicloud_ipd/base.py", line 228, in authenticate
raise PyiCloudFailedLoginException(msg, error)
pyicloud_ipd.exceptions.PyiCloudFailedLoginException: ('Invalid email/password combination.', PyiCloudAPIResponseError('statusCode = UnknownServerError, SocketTimeoutException sending request https://accountservice.p211.prod.silu.net:443/api/get_account_by_appleid_password, Read timed out, timeoutMs: 5000'))