Skip to content

ApiValueError when total_count is 0 #8

Description

@chelnak

Describe the bug
When the value of total_count is 0 the client raises an ApiValueError. I think this looks like some sort of validation issue?

To Reproduce

client.list_uptime_tests(tags="doesntexist")

Expected behavior
This should not fail and return the expected response

2022-11-15 22:29:28,425 - statuscake.rest - DEBUG - response body: b'{"data":[],"metadata":{"page":1,"per_page":25,"page_count":1,"total_count":0}}'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions