Schema.measurements error

Hi,
I’m trying to get list of measurements in a bucket with following command:

import "influxdata/influxdb/schema"
schema.measurements(bucket: "my-bucket")

This causes error: record is missing label windowPeriod
Adding range didn’t help with this error. Any ideas what could be causing this problem?

InfluDB v2.5.1 running on raspberry Pi 4 64bit

Hello @Jani_Kallankari,
Hmm I’m not sure.
It works for me:

brew info influxdb

==> **influxdb**: stable 2.5.1 (bottled), HEAD