So recently I was playing around with the
describePlayerSessions method and found a couple of issues. However, I’m not sure if all these “issues” are actually intended behavior.
- When passing in a valid
PlayerSessionStatusFilterin combination with a valid
PlayerSessionId, the filter is not applied. For example, if a player session is in the COMPLETED state, but you set the filter to ACTIVE, then you still get the player session associated with the id back. Also, if you pass in an invalid value for the filter with a valid value for the player session id, then no error is returned for the validation of the filter, so it seems that the filter is ignored completely when passing in a
- When passing in a invalid value for the
PlayerSessionStatusFilter, the error message returned does not indicate that. Since the filter doesn’t get applied when passing in a
PlayerSessionId, this only occurs when passing in a valid
PlayerIdor a valid
GameSessionId. Rather, the message describes an unrelated error:
Request must contain one and only one of PlayerSessionId, PlayerId, & GameSessionId.
Thanks in advance!