Notification not work there is a "sent" with triangle in any case?

Hello ,i can try to send notification but work only whit rbox not whit http post via google webhook but in any case status sent have this simbol:

i try in explorer to see log but status is set in false (but in rbox work):

this is my file in notification rules with google webhook:

import “influxdata/influxdb/monitor”

import “http”

import “json”

import “experimental”

option task = {name: “boh”, every: 5s, offset: 0s}

headers = {“Content-Type”: “application/json”}

endpoint = http"endpoint"

notification = {_notification_rule_id: “0949731987bc7000”, _notification_rule_name: “boh”, _notification_endpoint_id: “0933849e4ceab000”, _notification_endpoint_name: “alertsent”}

statuses = monitor[“from”](start: -10s)

crit = statuses |> filter(fn: (r) => r["_level"] == “crit”)

all_statuses = crit |> filter(fn: (r) => r["_time"] >= experimental[“subDuration”](from: now(), d: 5s))

all_statuses |> monitor[“notify”](data: notification, endpoint: endpoint(mapFn: (r) => {

body = {r with _version: 1}

return {headers: headers, data: json["encode"](v: body)}

}))

and this is documentation google:

why not work ?
how to receive log?
thank you

Hello @Mark_influx,
Have you tried following this example?

You can try to run the Flux code outside of a task, like in the data explorer instead. I find that doing this makes it easier to debug.
You can also try sending dummy data:

import "json"
import "http"

data = "foo" 

http.post(
    url: "http://myawsomeurl.com/api/notify",
    headers: {
        Authorization: "Bearer mySuPerSecRetTokEn",
        "Content-type": "application/json"
    },
    data: json.encode(v: data),
)

hello @Anaisdg ,
i try but not work…

i not have a token authorization in my link
i try with curl and work fine:

curl -H ‘Content-Type: application/json’ -X POST ‘OURGOOGLECHATURL’ --data ‘{“text”: “message”}’

there is a way to post text with flux?

this is google documentation:

REST Resource: spaces.messages  |  Get programmatic access to events, messages, spaces, and attachments  |  Google Developers

thank you