Skip to content

Not prompting for MFA code #1243

@Timster275

Description

@Timster275

Overview

icloudpd is not asking for the MFA code after a correct password is supplied through any one of the available sources.

The MFA code is displayed on an Apple device but icloudpd never asks for it and just times out.

2025-09-02 22:22:32 INFO     Processing user: [email protected]
2025-09-02 22:22:32 DEBUG    Authenticating...
iCloud Password for [email protected]
^CTraceback (most recent call last):
  File "starters/icloudpd.py", line 6, in <module>
  File "icloudpd/cli.py", line 609, in cli
  File "icloudpd/base.py", line 261, in run_with_configs
  File "icloudpd/base.py", line 438, in _process_all_users_once
  File "icloudpd/base.py", line 902, in core_single_run
  File "icloudpd/authentication.py", line 86, in authenticator
  File "pyicloud_ipd/base.py", line 278, in __init__
  File "pyicloud_ipd/base.py", line 327, in authenticate
  File "pyicloud_ipd/base.py", line 363, in _authenticate_with_token
  File "requests/sessions.py", line 637, in post
  File "pyicloud_ipd/session.py", line 78, in request
  File "pyicloud_ipd/utils.py", line 218, in wrapper
  File "requests/sessions.py", line 589, in request
  File "requests/sessions.py", line 703, in send
  File "requests/adapters.py", line 667, in send
  File "urllib3/connectionpool.py", line 716, in urlopen
  File "urllib3/connectionpool.py", line 404, in _make_request
  File "urllib3/connectionpool.py", line 1061, in _validate_conn
  File "urllib3/connection.py", line 363, in connect
  File "urllib3/connection.py", line 174, in _new_conn
  File "urllib3/util/connection.py", line 85, in create_connection

Steps to Reproduce

Running version 1.32.2 on Ubuntu 24.04
icloudpd --username <> --password <> --auth-only

Expected Behavior

Expecting icloudpd to ask for the code that is being displayed on my iPad

Actual Behavior

Connection times out. See trace to see where it is stuck

Context

I tested it on my Mac and it ran just fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions