boredazfcuk / docker-icloudpd

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

Telegram Issue #597

Open arnoldistuno opened 5 days ago

arnoldistuno commented 5 days ago

I am brand new to selfhosting and really am enjoying this journey. I had this docker container running no problem and someone told me about telegram messaging. I created a bot for unraid overall and it worked out great and can message. I created one for icloudpd, filled out the info... and I get this error:

-- 2024-07-02 03:10:39 INFO Telegram notifications enabled 2024-07-02 03:10:39 DEBUG Cleaned notification title: boredazfcukiCloudPD 2024-07-02 03:10:39 DEBUG Telegram token: (hidden) 2024-07-02 03:10:39 DEBUG Telegram chat id: (hidden) 2024-07-02 03:10:39 DEBUG Telegram polling: true 2024-07-02 03:10:39 DEBUG Telegram notification URL: (hidden) 2024-07-02 03:10:39 INFO Check Telegram bot initialised... 2024-07-02 03:10:39 DEBUG Checking api.telegram.org for updates 2024-07-02 03:10:40 DEBUG Bot check: true 2024-07-02 03:10:40 INFO - Bot has been initialised. 2024-07-02 03:10:40 INFO Latest update id: 0 2024-07-02 03:10:40 DEBUG Telegram silent file notifications: false 2024-07-02 03:10:40 DEBUG Startup notification: Enabled 2024-07-02 03:10:40 INFO Sending Telegram startup notification 2024-07-02 03:10:40 ERROR Telegram startup notification failed with http status code: 400 and curl exit code: 0 2024-07-02 03:10:40 ERROR Please post the above debug log, along with a description of your problem, here: https://github.com/boredazfcuk/docker-icloudpd/issues

I then tried to disable telegram by clearing out the telegram items (and I still get that error). Can someone point me in the right direction? Is this a setting for the overall docker container that I need to give it outside access? Any help would be appreciated! Thank you!

boredazfcuk commented 3 days ago

Status code 400 is "Bad request". It means the container didn't format its request correctly, so suggests you have connectivity to the Telegram service. Probably something iffy with the format of the variables related to Telegram.

I'm not sure what "items" you cleared out, but if you're talking about Docker environment variables, I only use them to set values in a configuration file: /config/icloudpd.conf. If you remove the environment variables, your configuration file will still have those settings in them and need to be edited out. This is likely the cause of Telegram remaining configured despite you removing its configuration.