boredazfcuk / docker-icloudpd

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

[BUG] Discord notification failed - token contains 'bark_device_key=' at the end #542

Closed cho1985 closed 2 months ago

cho1985 commented 2 months ago

I set up the notification with Discord and in the logs everything looks right beside that the Discord token and so the url contains 'bark_device_key=' at the end of the Discord value. I checked the configuration twice. Because of this issue I can't use Discord notifications.

Error: ERROR Discord startup notification failed with http status: 401 and curl exit code: 0 INFO Sending Discord startup notification INFO Discord notification URL: https://discord.com/api/webhooks/1234/xxxxbark_device_key= INFO Discord Discord token: xxxxbark_device_key= INFO Discord Discord ID: 1234 INFO Discord notifications enabled

Config: download_notifications=true delete_notifications=true startup_notification=true notification_title="iCloud PD" notification_type=Discord discord_id=1234 discord_token="xxxx"

Image: boredazfcuk/icloudpd:latest

cho1985 commented 2 months ago

I could solve the issue. If the provided config file does not contain all options e.g. not used notification services, then while init all other options will be attended. And maybe because of missing empty line at the end the first missing option 'bark_device_key=' is added at the end of the last line.