Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ApiTypeError when using 'get_stats_last120_seconds' #103

Open
Zlouis62 opened this issue Nov 7, 2024 · 0 comments
Open

ApiTypeError when using 'get_stats_last120_seconds' #103

Zlouis62 opened this issue Nov 7, 2024 · 0 comments

Comments

@Zlouis62
Copy link

Zlouis62 commented Nov 7, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant