statsbombapi icon indicating copy to clipboard operation
statsbombapi copied to clipboard

ValidationError with competitions endpoint

Open Ben8t opened this issue 4 years ago • 0 comments

Hello,

I got the following error when calling competitions() with StatsbombAPI client :

sb_client = statsbombapi.StatsbombAPI(username=username, password=password)
sb_client.competitions()

>> *** marshmallow.exceptions.ValidationError: {4: {'match_updated': ['Field may not be null.'], 'match_available': ['Field may not be null.']}, 8: {'match_available': ['Field ma
y not be null.']}, 23: {'match_available': ['Field may not be null.']}}

Does this come from a parsing problem following a StatsBomb update 😕 ?

I don't have any problem with sb_client.matches(competition_id=37, season_id=42) for example.

Ben8t avatar May 17 '20 10:05 Ben8t