RiotSharp icon indicating copy to clipboard operation
RiotSharp copied to clipboard

Bad Request - allowedSummonerIds field should be an array of summonerIds or excluded from the post body

Open unsorted01 opened this issue 4 years ago • 2 comments

When using the method: tournamentApi.CreateTournamentCodesAsync without filling summoners (null object)

I get this exception: image

Nuget Version: 5.0.0-alpha

unsorted01 avatar Nov 05 '21 15:11 unsorted01

Is that empty array or null value?

MingweiSamuel avatar Nov 05 '21 16:11 MingweiSamuel

I use this Method:

image

So it is the default value (null).

I think when it is null you should not include it in the request. Even as null value.

unsorted01 avatar Nov 05 '21 16:11 unsorted01