Using an incorrect password produces the exception shown below, mentioning a missing field. This is confusing and had me start a search for possible causes, not thinking about something as obvious as a wrong password. Therefore, if possible, the error should be improved.
Environment
pyiCloud release with the issue (pip show pyicloud): 1.0.0
File "/Users/danielschenk/git/ibackup/.venv/lib/python3.10/site-packages/pyicloud/base.py", line 271, in __init__
self.authenticate()
File "/Users/danielschenk/git/ibackup/.venv/lib/python3.10/site-packages/pyicloud/base.py", line 335, in authenticate
self._authenticate_with_token()
File "/Users/danielschenk/git/ibackup/.venv/lib/python3.10/site-packages/pyicloud/base.py", line 357, in _authenticate_with_token
raise PyiCloudFailedLoginException(msg, error) from error
pyicloud.exceptions.PyiCloudFailedLoginException: ('Invalid authentication token.', PyiCloudAPIResponseException('Missing apple_id field'))
The problem
Using an incorrect password produces the exception shown below, mentioning a missing field. This is confusing and had me start a search for possible causes, not thinking about something as obvious as a wrong password. Therefore, if possible, the error should be improved.
Environment
pip show pyicloud
): 1.0.0python -V
): Python 3.10.9Traceback/Error logs
Additional information