boredazfcuk / docker-icloudpd

An Alpine Linux container for the iCloud Photos Downloader command line utility
1.58k stars 149 forks source link

An error is reported using reauth.sh #536

Closed Arnold4869 closed 3 months ago

Arnold4869 commented 3 months ago

docker exec -it icloudpd reauth.sh 2024-03-31 11:32:02 DEBUG Authenticating... 2024-03-31 11:32:05 ERROR Authentication required for Account. (421) Traceback (most recent call last): File "starters/icloudpd.py", line 6, in 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 31, in authenticate_ File "pyicloud_ipd/base.py", line 305, in init File "pyicloud_ipd/base.py", line 367, in authenticate File "pyicloud_ipd/base.py", line 399, in _authenticate_with_token NameError: name 'PyiCloudConnectionException' is not defined. Did you mean: 'PyiCloudFailedLoginException'? [1420] Failed to execute script 'icloudpd' due to unhandled exception!

boredazfcuk commented 3 months ago

Are you based in China? It's probably defaulting to global authentication servers, instead of Chinese ones.

Arnold4869 commented 3 months ago

Are you based in China? It's probably defaulting to global authentication servers, instead of Chinese ones.

yeah, i am a Chinese.It means i need to change the reauth.sh to make it OK?

boredazfcuk commented 3 months ago

I've updated the container so that reauth.sh should now correctly set the authorisation domain.

Arnold4869 commented 3 months ago

I've updated the container so that reauth.sh should now correctly set the authorisation domain.

thanks. It is great.