boredazfcuk / docker-icloudpd

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

Failed to parse response with JSON mimetype - Can't Initialize keyring #462

Closed okletsgogo closed 2 months ago

okletsgogo commented 6 months ago

2023-12-24 22:42:07 INFO boredazfcuk/icloudpd container for icloud_photo_downloader v1.0.691 started 2023-12-24 22:42:07 INFO For support, please go here: https://github.com/boredazfcuk/docker-icloudpd 2023-12-24 22:42:07 INFO Alpine Linux 3.19.0 2023-12-24 22:42:07 INFO Python version: 3.11.6 2023-12-24 22:42:07 INFO Loading configuration from: /config/icloudpd.conf 2023-12-24 22:42:10 INFO Apple ID: abcd@gmail.com 2023-12-24 22:42:10 INFO Authentication Type: MFA 2023-12-24 22:42:10 INFO Cookie path: /config/abcdgmailcom 2023-12-24 22:42:10 INFO Cookie expiry notification period: 7 2023-12-24 22:42:10 INFO Download destination directory: /iCloud 2023-12-24 22:42:10 INFO Folder structure: {:%Y/%m/%d} 2023-12-24 22:42:10 INFO Synchronisation interval: 86400 2023-12-24 22:42:10 INFO Synchronisation delay (minutes): 0 2023-12-24 22:42:10 INFO Set EXIF date/time: false 2023-12-24 22:42:10 INFO Auto delete: false 2023-12-24 22:42:10 INFO Delete after download: false 2023-12-24 22:42:10 INFO Photo size: original 2023-12-24 22:42:10 INFO Single pass mode: false 2023-12-24 22:42:10 INFO Skip download check: true 2023-12-24 22:42:10 INFO Skip live photos: false 2023-12-24 22:42:10 INFO Number of most recently added photos to download: D ownload All Photos 2023-12-24 22:42:10 INFO Downloading photos from: Download All Photos 2023-12-24 22:42:10 INFO Stop downloading when prexisiting files count is: D ownload All Photos 2023-12-24 22:42:10 INFO Live photo size: original 2023-12-24 22:42:10 INFO Skip videos: false 2023-12-24 22:42:10 INFO Convert HEIC to JPEG: false 2023-12-24 22:42:10 INFO Downloading from: icloud.com 2023-12-24 22:42:10 INFO Authentication domain: com 2023-12-24 22:42:10 INFO Ignore Synology extended attribute directories: Dis abled 2023-12-24 22:42:10 INFO Script launch parameters: --Initialise 2023-12-24 22:42:10 INFO Directory is writable: /config/python_keyring/ 2023-12-24 22:42:10 INFO Starting container initialisation 2023-12-24 22:42:11 ERROR Authentication required for Account. (421) Please enter two-factor authentication code: 609415 2023-12-24 22:42:28 WARNING Failed to parse response with JSON mimetype 2023-12-24 22:42:32 INFO Multifactor authentication cookie generated. Sync s hould now be successful 2023-12-24 22:42:32 INFO Container initialisation complete

The keyring hasn't expired yet I executed the initialization command after ssh connection using putty to test the keyring initialization operation After the execution, it says "WARNING Failed to parse response with JSON time type" Is this an initialization success? Will the initialization work be executed only when the keyring expires? Please explain this in detail

And please explain how to solve this problem

boredazfcuk commented 6 months ago

Warnings are not necessarily errors. I also received this warning, but it didn't cause a problem, so I ignored it.

If you want to remove your current keyring run sync-icloud.sh --remove-keyring then re-initialise the container.

okletsgogo commented 6 months ago

Warnings are not necessarily errors. I also received this warning, but it didn't cause a problem, so I ignored it.

If you want to remove your current keyring run sync-icloud.sh --remove-keyring then re-initialise the container.

Thanks your answer ! I'll give it a try

Hakoexe commented 3 months ago

Warnings are not necessarily errors. I also received this warning, but it didn't cause a problem, so I ignored it. If you want to remove your current keyring run sync-icloud.sh --remove-keyring then re-initialise the container.

Thanks your answer ! I'll give it a try

did that work for you or should i just ignore the error just had that happen to me

boredazfcuk commented 2 months ago

Closing as no response in over a month