Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mattermost does not send to selected channel #1019

Open
truppelito opened this issue Dec 18, 2023 · 3 comments
Open

Mattermost does not send to selected channel #1019

truppelito opened this issue Dec 18, 2023 · 3 comments
Labels

Comments

@truppelito
Copy link

馃摚 Notification Service(s) Impacted
Mattermost

馃悶 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 truppelito added the bug label Dec 18, 2023
@truppelito
Copy link
Author

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
Copy link
Owner

caronc commented Dec 18, 2023

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
Copy link
Owner

caronc commented Dec 29, 2023

HI, can you please provide an update to this? 馃檹

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants