GithubHelp home page GithubHelp logo

Comments (10)

axscrew avatar axscrew commented on May 26, 2024 1

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.

AndreyNikiforov avatar AndreyNikiforov commented on May 26, 2024

How is proxy configured for icloudpd process? Does icloudpd work without proxy?

from icloud_photos_downloader.

scrutinizer11 avatar scrutinizer11 commented on May 26, 2024

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.

AndreyNikiforov avatar AndreyNikiforov commented on May 26, 2024

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.

rorymurtagh avatar rorymurtagh commented on May 26, 2024

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.

SnoopyCoder avatar SnoopyCoder commented on May 26, 2024

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.

axscrew avatar axscrew commented on May 26, 2024

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.

Mintume avatar Mintume commented on May 26, 2024

Facing the same issue.

from icloud_photos_downloader.

Mintume avatar Mintume commented on May 26, 2024

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.

axscrew avatar axscrew commented on May 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.