Skip to content

Getting multiple pages for raw data service returns error when using outputFormat=object #72

@kan-fu

Description

@kan-fu

Reported by Angela. To reproduce,

from onc import ONC

onc = ONC()
deviceCode = 'RBRQUARTZ3BPRZERO207223'
params = {
    "outputFormat": "object",
    "deviceCode": deviceCode,
    "dateFrom": "2022-04-05T03:28:19.917Z",
    "dateTo": "2022-04-06T00:00:00.000Z",
}
                
onc.getRawdata(params, allPages=True)

The root cause is that using outputFormat=object changes the format of the response. Scalar data service might also have this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions