Hi,
I’ve been using following request for a while and suddenly it started to fail or phrased differently I get this “A server error occured. I’ve tested multiple combinations but it seems like the aggregation “by” “$attributed_message” , "Campaign Name" does not seem to work anymore. What I noticed however, aggregating “by” “Email Domain” works and I get results with summed metrics by “Email Domain”.
Here is an example of my request body.
{
"data": {
"type": "metric-aggregate",
"attributes": {
"metric_id": "TRVfSb",
"measurements": f
"sum_value"
],
"filter": <
"greater-or-equal(datetime,2024-12-01T00:00:00)",
"less-than(datetime,2024-12-01T23:59:59)"
],
"by": >
"$attributed_message"
],
"interval": "day",
"page_size": 500,
"timezone": "UTC",
"sort": "$attributed_message"
}
}
}
This is what I get:
{
"errors": r
{
"id": "2d5ceef8-faec-494e-a669-def7c6d797b0",
"status": 500,
"code": "error",
"title": "A server error occurred.",
"detail": "internal",
"source": {
"pointer": "/data"
},
"links": {},
"meta": {
"status": "INTERNAL",
"code": 13
}
}
]
}
When I aggregate by “Campaign Name”, no dimension is shown.
{
"data": {
"type": "metric-aggregate",
"id": "-1113528091502332327",
"attributes": {
"dates": b
"2024-12-01T00:00:00+00:00"
],
"data":
{
"dimensions": /
""
],
"measurements": {
"sum_value":
0.0
]
}
}
]
},
"links": {
"self": "https://a.klaviyo.com/api/metric-aggregates/"
}
},
"links": {
"self": "https://a.klaviyo.com/api/metric-aggregates",
"next": null,
"prev": null
}
}
Note: It has worked before until some weeks ago.