Grafana alert manager works but gives error in UI related to loki query?


I did manage to get the alert. However, the alert UI doesn’t show the log query output and instead this error message is shown.
Please suggest a way to solve this or a way to debug also would be very appreciated.
Screen Shot 2022-09-01 at 16.52.18


I still have this error. Also alerts won’t dismiss, they stay in “alerting” state forever. Maybe these two issues are related?

This is the error message returned:

    "message": "Failed to evaluate queries and expressions: failed to execute conditions: input data must be a wide series but got type long (input refid)",
    "traceID": "00000000000000000000000000000000"

And this is the request sent by grafana alerting UI:

Please suggest how to handle?