-
-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Telegram) Notification broken (in docker)? #377
Comments
I had that problem once as well. Reinstalled apprise and it worked again. How did you install it? brew/apt/pip/pipx...? |
Hm, I'm just running the docker container, usually just with "docker compose up -d" and to test it I ran it with "docker compose run free-games-claimer apprise 'tgram://..." Starting the container not running the scripts but bash instead apprise is only in one location and it always works when called manually, with or without absolute path, also both from within env -i bash 🤷♂️ |
Ah, ok, then it's something else. Are you running the latest image? Haven't changed anything involving apprise recently (although, could be that the apprise version changed between builds). If it's broken, it should be broken for everyone using the image. |
I am on the current image now, but diagnosing when the happens is a bit difficult because at first I thought I'd just check when it stopped working, which was two weeks ago, but then I noticed that that was when I was doing some maintenance to the server running it, so in theory that could be directly related, but probably that's just when I did a docker compose pull for this program, which I did not do regularly, because I thought the fact that no new releases on here ment no new docker containers... |
I have a similar problem with gotify too, i'm also using the latest image.
|
My gmail notifications via notify stopped working after upgrading my docker image a few days ago. Didn't change anything else about my setup. |
I'm also having the same problem with apprise, using ntfy - similar error:
This stopped working around September 15th for me. Again the command works if I log into the container directly and run it. Using the container image for this. |
So I did some digging and managed to resolve my issue with this. I'm not 100% sure what's going on here though, but I think that it's something to do with the way arguments are passed into node and ' not being escaped correctly. In order to debug this, I modified Anyway, that output was crucial to understanding what was going on with apprise. Looking at the stdout, somehow this command:
was being treated as if the topic was I checked my environment variables and noticed that I was passing in the URL like this:
I removed both ' from this and everything works again. But this should work fine in the first place anyway, because copying and pasting the command in the output does work, hence my thinking that fgc isn't correctly escaping the ' it's passing into execFile. I noticed there's comments in util.js talking about using execFile to avoid this very issue, so I'm not sure what's going on there. @silentguy256 and @Elmagenta - I suspect you'll both have a similar issue as me, with apprise seeing @vogler It'd be really useful in future if stderr and stdout were output in the event of an error as well, as it was difficult to debug what was actually going on here without it. |
Thanks @neoKushan, I kind of expected something like this, but there was such a mess of escaping in there that I did not want to debug it, especially cause it's not always trying to send something. Changing the environment did indeed fix it! Weirdly it now sends messages as |
Thank you, @neoKushan, I had the same problem and this solved it for me 👍 |
as we know epic hasn't worked for ages for me but I kind of still have it running once a week for other services and as a reminder to manually check in... A while ago notifications via telegram broke:
Manually triggering "apprise 'tgram://XXX:YYY/ZZZ' -i html -b 'epic-games: no longer signed in and not enough options set for automatic login.'", which i copy pasted from the error, works fine
The text was updated successfully, but these errors were encountered: