caronc / apprise

Apprise - Push Notifications that work with just about every platform!
https://hub.docker.com/r/caronc/apprise
BSD 2-Clause "Simplified" License
10.94k stars 385 forks source link

Mattermost does not send to selected channel #1019

Open truppelito opened 6 months ago

truppelito commented 6 months ago

:mega: Notification Service(s) Impacted Mattermost

:lady_beetle: Describe the bug I want to send a Mattermost notification to a specific channel. According to the instructions, this URL should work:

mmost://my_username@mattermost:8065/my_token?channels=my_channel

However, it doesn't work. The correct username is used ("my_username"), but the notification is sent to the channel selected here (in this case, the "Town Square"):

Screenshot 2023-12-18 at 18 57 25

Note that "Lock to this channel" is not selected. In fact, this works correctly (to the correct channel) if I send the request manually:

curl -i -X POST --data-urlencode 'payload={"username": "my_username", "channel": "my_channel", "text": "Hello, this is some text :tada:"}' http://mattermost:8065/hooks/my_token

Given that the curl request works, this seems to be an Apprise issue...

truppelito commented 6 months ago

Interestingly, I looked at the source code and it seems that mmost://my_username@mattermost:8065/my_token?to=my_channel works, which is surprising.

caronc commented 6 months ago

The payload places the channel there; see line 220 just as you're doing with your curl example.

If you run the the Apprise CLI with -vvv , does the debug output give any more hints as to what is going on?

caronc commented 6 months ago

HI, can you please provide an update to this? :pray: