Skip to content

ApiTypeError when using 'get_stats_last120_seconds' #103

@Zlouis62

Description

@Zlouis62

Version

Please provide the version of fastly that you're using.
Tried version 5.7.0 & 5.10.0

What happened

When attempting to utilize 'get_stats_last120_seconds' against our service ID, I get the following error -

fastly.exceptions.ApiTypeError: Invalid type for variable 'recorded'. Required value type is RealtimeEntryRecorded and passed type was int at ['received_data']['data'][0]['recorded']

As far as I can tell (and I may be missing something here), this is similar to other issues posted where the data returned doesn't match what's specified in the Open API schema on your side.

Ideally, we'd like to utilize this package and abstract it in our application however, we'll have to resort to a regular REST GET call until this can be resolved.

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