Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'salt' occurs after enter the password #983

Open
neverbiasu opened this issue Nov 1, 2024 · 1 comment
Open

KeyError: 'salt' occurs after enter the password #983

neverbiasu opened this issue Nov 1, 2024 · 1 comment
Labels

Comments

@neverbiasu
Copy link

Overview

python version is: 3.9.12
icloudpd version is: 1.24.1

Steps to Reproduce

  1. run pip install icloudpd
  2. run icloudpd --directory DIRECTORY --username USERNAME --watch-with-interval 3600

Expected Behavior

Actual Behavior

2024-11-01 16:34:20 DEBUG    Authenticating...
iCloud Password: 
Traceback (most recent call last):
  File "/opt/anaconda3/bin/icloudpd", line 8, in <module>
    sys.exit(main())
  File "/opt/anaconda3/lib/python3.9/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/opt/anaconda3/lib/python3.9/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/opt/anaconda3/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/anaconda3/lib/python3.9/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/opt/anaconda3/lib/python3.9/site-packages/icloudpd/base.py", line 745, in main
    result = core(
  File "/opt/anaconda3/lib/python3.9/site-packages/icloudpd/base.py", line 1183, in core
    icloud = authenticator(
  File "/opt/anaconda3/lib/python3.9/site-packages/icloudpd/authentication.py", line 53, in authenticate_
    icloud = PyiCloudService(
  File "/opt/anaconda3/lib/python3.9/site-packages/pyicloud_ipd/base.py", line 160, in __init__
    self.authenticate()
  File "/opt/anaconda3/lib/python3.9/site-packages/pyicloud_ipd/base.py", line 240, in authenticate
    salt = base64.b64decode(body['salt'])
KeyError: 'salt'

Context

@neverbiasu neverbiasu added the bug label Nov 1, 2024
@AndreyNikiforov
Copy link
Collaborator

The error suggests that response from Apple was in unexpected format. Are you experiencing this error consistently?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants