Hello,
Creation of an alert on a question (as an admin) fails with the following error (found on inspecting the call): -
{
"errors": {
"card": "value must be a map with the keys `id`, `include_csv`, `include_xls`, and `dashboard_card_id`."
}
}
Following is the request payload: -
{
"alert_first_only":false,
"alert_condition":"rows",
"channels":[
{
"schedule_type":"weekly",
"schedule_hour":2,
"schedule_frame":null,
"schedule_day":"mon",
"recipients":[
{
"email":"prabhatika.vij@clear.in",
"ldap_auth":false,
"first_name":"Prabhatika",
"has_invited_second_user":false,
"locale":null,
"last_login":"2024-08-21T05:29:24.406481Z",
"is_active":true,
"is_qbnewb":false,
"updated_at":"2024-08-21T05:29:24.406481",
"group_ids":[
1,
2
],
"is_superuser":true,
"login_attributes":null,
"id":461,
"last_name":"Vij",
"date_joined":"2022-06-09T06:01:19.350011Z",
"personal_collection_id":488,
"common_name":"Prabhatika Vij",
"google_auth":false
}
],
"channel_type":"email",
"enabled":false
},
{
"channel_type":"slack",
"enabled":true,
"recipients":[
],
"details":{
"channel":"@prabhatika.vij"
},
"schedule_type":"weekly",
"schedule_day":"mon",
"schedule_hour":2,
"schedule_frame":null
}
],
"card":{
"id":15362
}
}
going to the endpoint /api/alert
.
I can see that in the above payload, the "card" json only has the "id" key and the other keys mentioned in the error ("include_csv", "include_xls" and "dashboard_card_id") are not present there.
We are running Metabase 0.42.3 (we are using the open-source version). Couldn't find anything useful in the Troubleshooting logs too except the following: -
POST /api/alert 400 5.0 ms (0 DB calls)
{:errors {:card "value must be a map with the keys `id`, `include_csv`, `include_xls`, and `dashboard_card_id`."}}
On the UI, on clicking the "Done" button, we get the message "Saving failed".
PFA the screenshot of the issue.
Want to understand if I am doing something wrong while creating an alert.
I couldn't find any existing issue talking about this, request you to point me to one if this is a known issue.
Thank you,
Prabhatika