1lann / lol-replay

A collection of Go (golang) packages to record and play back League of Legends games from the spectator endpoint.
MIT License
73 stars 16 forks source link

Error 401 : Unauthorized #6

Open ghost opened 6 years ago

ghost commented 6 years ago

Hi

I have test our code but I have a mistake =>

2018/04/20 14:27:03 URL: https://euw1.api.riotgames.com/lol/spectator/v3/active-games/by-summoner//consumer/getSpectatorGameInfo/EUW1/57871626 2018/04/20 14:27:03 current game: not OK: 401 Unauthorized 2018/04/20 14:27:03 URL: https://euw1.api.riotgames.com/lol/spectator/v3/active-games/by-summoner//consumer/getSpectatorGameInfo/EUW1/57871626 2018/04/20 14:27:03 current game: not OK: 401 Unauthorized 2018/04/20 14:27:03 URL: https://euw1.api.riotgames.com/lol/spectator/v3/active-games/by-summoner//consumer/getSpectatorGameInfo/EUW1/57871626

How fix this bug ?

gverri commented 6 years ago

Do you have your RIOT Api Key on the config file?