Grafana renderer - 400 Bad Request when calling Grafana

I have grafana stack in docker swarm, with separate grafana-image-renderer service. And it failes to render the images.

In the renderer logs I see this message:

{"level":"error","message":"Browser console error","msg":"Failed to load resource: the server responded with a status of 400 (Bad Request)","url":"http://grafana:3000/api/datasources/uid/PBFA97CFB590B2093/resources/api/v1/series?match%5B%5D=label_values(%2C)&start=1731993716&end=1732015316"}

When I try it in Chrome (with proper hostname), I get thiss error:
{"status":"error","errorType":"bad_data","error":"invalid parameter \"match[ ]\": 1:13: parse error: unexpected \"(\""}

Can the request be somehow malformed? Where is the ‘(%2C)’ coming from?