No user was specified; using "Apprise" and config question via rest api
See original GitHub issue❓ Question I have been able to send a successful slack message but I get a warning in the UI i.e.
2021-10-23 05:11:45,367
WARNING
No user was specified; using "Apprise".
2021-10-23 05:11:45,367
INFO
Loaded 1 entries from memory://
2021-10-23 05:11:45,368
INFO
Notifying 1 service(s) asynchronously.
2021-10-23 05:11:45,597
INFO
Sent Slack notification.
My config (TEXT) is (xxxx replaced original slack tokens)
team=slack://xxxxxxxx/xxxxxxxx/xxxxxxxx Am I doing something wrong ?
Also is there any config examples for using YAML rather than TEXT ?
Also, what is the format of the /add/{KEY} endpoint ?
I tried passing a complex object to “URLs” but it did not work, only works with a string.
But how can I specify the tags ?
For example…
Here is the /add/tester endpoint
{
"urls": "slack://xxxxxxx/xxxxxxx/xxxxxxx"
}
And if I call into the json/urls/tester then I get (notice empty tags)
{
"tags": [],
"urls": [
{
"url": "slack://xxxxxxx/xxxxxxxxx/xxxxxxxxx//?image=yes&footer=yes&format=markdown&overflow=upstream&rto=4.0&cto=4.0&verify=yes",
"tags": []
}
]
}
For sure I am doing something wrong.
Of course, if I call the notify/tester endpoint without specifying a tag then the message is sent but if i specify a tag no message is sent - this is because I wasn’t able to setup a tag.
Sending a valid message - I get the warning returned in the response
2021-10-23 06:27:16,166 [WARNING] apprise: No user was specified; using “Apprise”. 2021-10-23 06:27:16,166 [INFO] apprise: Loaded 1 entries from memory:// 2021-10-23 06:27:16,166 [INFO] apprise: Notifying 1 service(s) asynchronously. 2021-10-23 06:27:16,399 [INFO] apprise: Sent Slack notification.
I also tried specifying the config on the /add endpoint but I get the format specified is invalid
i.e.
{
"config": "team=slack://xxxxxx/xxxxx/xxxxx",
"type": "text"
}
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (4 by maintainers)
Top GitHub Comments
just calling the endpoint. Show you a curl,
Here is a pic from postman and you can see the response.
BUT the message arrives to the provider, in my case for that tag - its slack.
Ok finally figured it out, the clue was in the UI, there were some sample 😃 Doh! I must have missed it.
Closing it.