Skip to content

Calls to get_facility_data with >30 facilities --> API Error #10

@AndrewStyan

Description

@AndrewStyan

Calls to get_facility_data that have more than 30 facilities fail to run.

Dealing with this by breaking calls up into groups of <=30, but should be rectified.

[2025-04-16 16:41:28] DEBUG [openelectricity.client._async_get_facility_data:198] Request parameters: {'facility_code': ['ALDGASF', 'AVLSF', 'BANNSP', 'BLUEGSF', 'BOMENSF', 'BNGSF1', 'BNGSF2', 'CLARESF', 'COLEASF', 'COLUMSF', 'DDSF', 'DARLSF', 'DAYDSF', 'EDENVSF', 'FINLEYSF', 'GANGARR', 'GLENSF', 'GLRWNSF', 'GNNDHSF', 'HAUGHT1', 'HILLSTN', 'KARSF', 'KIAMSF1', 'LILYVASF', 'LIMOSF1', 'METZSF', 'NEVERSF', 'NEWENSF', 'NUMURKSF', 'NYNGAN', 'RRSF', 'SEBSF', '0STUBBOSF', 'SMCSF', 'SUNRSF1'], 'metrics': ['power'], 'interval': '5m', 'date_start': '2025-04-16T14:41:00', 'date_end': '2025-04-16T16:41:00'}
[2025-04-16 16:41:34] ERROR [openelectricity.client._handle_response:105] API error: 400 - Bad Request

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions