Skip to content

ApiValueError on list invitations #104

@morrieinmaas

Description

@morrieinmaas

Version: 6.0.0

When trying to retrieve a list of open invites from fastly using the client i get

/fastly/model_utils.py", line 1789, in get_allof_instances
    raise ApiValueError(
fastly.exceptions.ApiValueError: Invalid inputs given to generate an instance of 'InvitationsResponseAllOf'. The input data was invalid for the allOf schema 'InvitationsResponseAllOf' in the composed schema 'InvitationsResponse'. Error=Invalid inputs given to generate an instance of 'InvitationData'. The input data was invalid for the allOf schema 'InvitationData' in the composed schema 'InvitationResponseData'. Error=Invalid type for variable 'data'. Required value type is list and passed type was NoneType at ['received_data']['data'][0]['relationships']['service_invitations']['data']

I suspect but am not entirely sure that the error is not in the tyope validation per se, but from the call_api method's return.

I tried calling the endpoint from call_api() and that returns None. I guess returning an empty list here would solve above error.

However, after checking manually in fastly I see there are a bunch of open invites in my case. So i tried with curl instead, which gives me the list of open invites I see on the fastly website as well.

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