caronc / apprise

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

Matrix notification webhook is missing key the argument #434

Closed FrankelJb closed 1 year ago

FrankelJb commented 3 years ago

:mega: Notification Service(s) Impacted Matrix

:beetle: Describe the bug In the Notify_matrix documentation, there is a reference to the webhook service. However, the webhook servicve requires a secret, shared key to be passed as a request parameter called key or for the data to be a valid SHA-256 HMAC digest with the key. However, the scheme does not cater for this parameter.

:bulb: Screenshots and Logs

2021-08-31 08:58:29,746 [WARNING] apprise: Failed to send Matrix notification: Bad Request - Unsupported Parameters., error=400.
2021-08-31 08:58:29,746 [DEBUG] apprise: Response Details:
b'{"status": 400, "ret": "Missing key"}'

:computer: Your System Details: Kubernetes v1.21.1 via k3s running caronc/apprise:latest image.

caronc commented 3 years ago

Are you using the following syntax:

matrix://{user}:{token}@{hostname}?mode=matrix
matrixs://{token}@{hostname}:{port}?mode=matrix

Make sure to specify ?mode=matrix at the end. That turns the webhook matrix mode on (otherwise it just tries to log into the matrix server and manually send the message. The {token} becomes your key when you specify the matrix mode.

matrix:// for http:// endpoints and matrixs:// for https

lgwapnitsky commented 2 years ago

I'm attempting with the following and getting nothing on my matrix server, but all other calls to this work

http://matrix.wapnet.local.lan:9000/api/v1/matrix/hook/qIahB0Cv68TbpC5nB0TFHZVfedguJODbizbdLSUXq5DsG9MDJviNKyD5vRFU8EgI?mode=matrix

caronc commented 2 years ago

this ticket got lost; did you ever figure this out.

I apologize for taking so long to get back to you.

caronc commented 1 year ago

Closing this as it does not appear to be an issue with the plugin