Hi, I’m trying to create a health check handler that sends slack messages (as described here and here).
I get the following error:
$ flyctl checks handlers create --type slack
? Select Organization: Abc (abc)
? Name: fly alerts
? Webhook URL: https://hooks.slack.com/services/xyz/xyz/xyz
? Slack Channel (defaults to webhook’s configured channel):
Error Cannot return null for non-nullable field HealthCheckHandler.name
This is odd, as I’ve been prompted for the name and provided one. I’ve tried passing in the name directly with the --name
parameter but I get the same error.
(I also don’t understand whether this creates a global handler or just for one app, so tried this both in a parent directory, and one with a fly.toml
file with an app name. Not sure if this is relevant, but failed the same way in both cases.)
Any help would be much appreciated!