Comments (10)
Almost same here so I'm not starting a new issue. The internet is working, nothing like proxy is meddling. Upon executing icloudpd prompts that Two-step/two-factor authentication is required (2fa) but none of my apple devices prompts me with the code. If I go to the settings -> Sign-In & Security > Two Factor Authentication -> Get Verification Code and enter the code, icloudpd fails. Initially 1.17.0 failed, I upgraded it to 1.17.2 (the latest windows build available) but this didn't help.
C:\Users\xscre\OneDrive\iCloud>C:\Users\xscre\OneDrive\iCloud\\icloudpd\icloudpd-1.17.2-windows-amd64.exe --username ******@gmail.com --directory C:\Users\xscre\OneDrive\iCloud\\Alex 2024-02-10 07:53:37 DEBUG Authenticating... 2024-02-10 07:53:38 INFO Two-step/two-factor authentication is required (2fa) Please enter two-factor authentication code: 913897 2024-02-10 07:53:50 ERROR (403) Traceback (most recent call last): File "starters\icloudpd.py", line 6, in <module> File "click\core.py", line 1157, in __call__ File "click\core.py", line 1078, in main File "click\core.py", line 1434, in invoke File "click\core.py", line 783, in invoke File "icloudpd\base.py", line 328, in main File "icloudpd\base.py", line 760, in core File "icloudpd\authentication.py", line 48, in authenticate_ File "icloudpd\authentication.py", line 105, in request_2fa File "pyicloud_ipd\base.py", line 539, in validate_2fa_code File "requests\sessions.py", line 637, in post File "pyicloud_ipd\base.py", line 134, in request File "pyicloud_ipd\base.py", line 207, in _raise_error pyicloud_ipd.exceptions.PyiCloudAPIResponseException: (403) [15196] Failed to execute script 'icloudpd' due to unhandled exception! C:\Users\xscre\OneDrive\iCloud>PAUSE Press any key to continue . . .
What helped was deleting all auth-related files from .pycloud
dir. Then I was prompted with the code which I hadn't been before.
from icloud_photos_downloader.
How is proxy configured for icloudpd process? Does icloudpd work without proxy?
from icloud_photos_downloader.
The proxy (Squid-based) has no per-app config options. It receives connections on localhost:3128. I also use Adguard's resolvers. When troubleshooting, I changed those to Google's but that had no difference. In fact, I doubt icloudpd connects to the Internet. Little Snitch Network Monitor shows no traces of the outbound connections by icloudpd, so I don't see any cues allowing me to register its attempts at network activity.
The account is 2FA.
from icloud_photos_downloader.
I am thinking of the following steps to troubleshoot:
- try prev version to isolate the change
- try without proxy to confirm that no other issues are inflicting proxy errors
- use HTTP_PROXY env var as mentioned in the doc
- try modifying src code for explicit proxy setup (at least to confirm that as a mitigation)
from icloud_photos_downloader.
I have the same issue. But no proxy. 1.17.2 works. latest/1.17.3 does not. Will keep looking/debug.
from icloud_photos_downloader.
Same issue, Internet access is working (checked with "curl www.google.com
") and no proxy.
2024-01-30 14:33:28 DEBUG Authenticating...
2024-01-30 14:33:29 ERROR Unknown reason
Traceback (most recent call last):
File "pyicloud_ipd/base.py", line 220, in authenticate
File "requests/sessions.py", line 637, in post
File "pyicloud_ipd/base.py", line 105, in request
File "pyicloud_ipd/base.py", line 127, in _raise_error
pyicloud_ipd.exceptions.PyiCloudAPIResponseError: Unknown reason
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "starters/icloudpd.py", line 5, in <module>
File "click/core.py", line 1157, in __call__
File "click/core.py", line 1078, in main
File "click/core.py", line 1434, in invoke
File "click/core.py", line 783, in invoke
File "icloudpd/base.py", line 317, in main
File "icloudpd/base.py", line 744, in core
File "icloudpd/authentication.py", line 31, in authenticate_
File "pyicloud_ipd/base.py", line 204, in __init__
File "pyicloud_ipd/base.py", line 228, in authenticate
pyicloud_ipd.exceptions.PyiCloudFailedLoginException: ('Invalid email/password combination.', PyiCloudAPIResponseError('Unknown reason'))
from icloud_photos_downloader.
Almost same here so I'm not starting a new issue. The internet is working, nothing like proxy is meddling. Upon executing icloudpd prompts that Two-step/two-factor authentication is required (2fa) but none of my apple devices prompts me with the code. If I go to the settings -> Sign-In & Security > Two Factor Authentication -> Get Verification Code and enter the code, icloudpd fails. Initially 1.17.0 failed, I upgraded it to 1.17.2 (the latest windows build available) but this didn't help.
C:\Users\xscre\OneDrive\iCloud>C:\Users\xscre\OneDrive\iCloud\\icloudpd\icloudpd-1.17.2-windows-amd64.exe --username ******@gmail.com --directory C:\Users\xscre\OneDrive\iCloud\\Alex
2024-02-10 07:53:37 DEBUG Authenticating...
2024-02-10 07:53:38 INFO Two-step/two-factor authentication is required (2fa)
Please enter two-factor authentication code: 913897
2024-02-10 07:53:50 ERROR (403)
Traceback (most recent call last):
File "starters\icloudpd.py", line 6, in <module>
File "click\core.py", line 1157, in __call__
File "click\core.py", line 1078, in main
File "click\core.py", line 1434, in invoke
File "click\core.py", line 783, in invoke
File "icloudpd\base.py", line 328, in main
File "icloudpd\base.py", line 760, in core
File "icloudpd\authentication.py", line 48, in authenticate_
File "icloudpd\authentication.py", line 105, in request_2fa
File "pyicloud_ipd\base.py", line 539, in validate_2fa_code
File "requests\sessions.py", line 637, in post
File "pyicloud_ipd\base.py", line 134, in request
File "pyicloud_ipd\base.py", line 207, in _raise_error
pyicloud_ipd.exceptions.PyiCloudAPIResponseException: (403)
[15196] Failed to execute script 'icloudpd' due to unhandled exception!
C:\Users\xscre\OneDrive\iCloud>PAUSE
Press any key to continue . . .
from icloud_photos_downloader.
Facing the same issue.
from icloud_photos_downloader.
What helped was deleting all auth-related files from
.pycloud
dir. Then I was prompted with the code which I hadn't been before.
Can you tell me the directory location and which file to be deleted, pls?
from icloud_photos_downloader.
What helped was deleting all auth-related files from
.pycloud
dir. Then I was prompted with the code which I hadn't been before.
Can you tell me the directory location and which file to be deleted, pls?
I have windows, so I deleted all the files in this directory: C:\Users\%USERNAME%\.pyicloud
Not sure about other OS.
from icloud_photos_downloader.
Related Issues (20)
- Can't login "Bad username or password for" HOT 2
- Live pics are downloaded as HEIC and MOV
- Option to only download N oldest HOT 3
- Two Containers - One Downloads, the other Doesn't. HOT 4
- crashed during 2fa (Failed to execute script 'icloudpd_ex' due to unhandled exception!) HOT 5
- Hello hello
- Reverse geocode GPS coordinates from photos and write appropriate EXIF location tags?
- Only small fraction of photos is downloaded HOT 1
- Only small number of photos is downloaded from library with 44k photos HOT 13
- icloudpd 1.17.3: Failed to execv() /tmp/staticx-kJmNbp/icloud-1.17.3-linux-amd64.dynamic: Permission denied HOT 8
- Download EXIF Favorite flag HOT 3
- pyicloud_ipd.exceptions.PyiCloudFailedLoginException: ('Invalid email/password combination.', PyiCloudAPIResponseError('Unknown reason')) HOT 5
- No JPG downloaded HOT 2
- Authenticate HOT 2
- Downloads consistently stall when including videos HOT 6
- Thinks it's a find my iphone command line tool HOT 1
- Error that I don't understand. "private db access disabled for this account" HOT 2
- Unable to use the software (-d arguement not recognized) etc
- iCloud Drive and Ubiquity support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from icloud_photos_downloader.