BenFradet / RiotSharp

C# wrapper for the Riot Games API
http://benfradet.github.io/RiotSharp/
MIT License
300 stars 145 forks source link

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

Open unsorted01 opened 2 years ago

unsorted01 commented 2 years ago

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

I get this exception: image

Nuget Version: 5.0.0-alpha

MingweiSamuel commented 2 years ago

Is that empty array or null value?

unsorted01 commented 2 years ago

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.