aj-r / RiotNet

A .NET/C# client for the Riot Games API
MIT License
23 stars 10 forks source link

"new-line characters in header values must be followed by a white-space character" when using Release mode #29

Closed shaked6540 closed 6 years ago

shaked6540 commented 6 years ago

Whenever I use the 'Release' preset with Visual Studio 2017 I get this exception: Error

This line of code is causing the error: var summoner = await client.GetSummonerBySummonerNameAsync(name).ConfigureAwait(false);

The strange thing is, when I use debug mode, everything works fine. What could be causing this error?

shaked6540 commented 6 years ago

Never mind, dumbass me read the token from a file and accidentally inserted a newline at the end of it