Skip to content

An attempt will be made to request the SMS in another way is failing when correct OTP is entered #224

@sijintv

Description

@sijintv

An attempt will be made to request the SMS in another way.). Is sending SMS. when I type in 2FA

2025-12-12 16:50:19,564 - INFO - Sending SMS via id 1
Enter SMS 2FA code:143546
Traceback (most recent call last):
  File "/app/endpoint/mh_endpoint.py", line 177, in <module>
    apple_cryptography.registerDevice()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/app/endpoint/register/apple_cryptography.py", line 71, in registerDevice
    getAuth(regenerate=True)
    ~~~~~~~^^^^^^^^^^^^^^^^^
  File "/app/endpoint/register/apple_cryptography.py", line 44, in getAuth
    mobileme = icloud_login_mobileme(
        username=mh_config.getUser(), password=mh_config.getPass())
  File "/app/endpoint/register/pypush_gsa_icloud.py", line 45, in icloud_login_mobileme
    g = gsa_authenticate(username, password)
  File "/app/endpoint/register/pypush_gsa_icloud.py", line 126, in gsa_authenticate
    sms_second_factor(spd["adsid"], spd["GsIdmsToken"])
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/endpoint/register/pypush_gsa_icloud.py", line 301, in sms_second_factor
    resp.raise_for_status()
    ~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.14/site-packages/requests/models.py", line 1026, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error:  for url: https://gsa.apple.com/auth/verify/phone/securitycode

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions