meraki-analytics / orianna

A Java framework for the Riot Games League of Legends API (http://developer.riotgames.com/).
MIT License
182 stars 56 forks source link

Unauthorized Exception for getting summoner #118

Closed popalexandru closed 4 years ago

popalexandru commented 4 years ago

Hello, I am trying to get the summoner by name and region using a valid API and I get this exception:

Method threw 'com.merakianalytics.orianna.datapipeline.riotapi.exceptions.UnauthorizedException' exception. Cannot evaluate com.merakianalytics.orianna.types.core.summoner.Summoner.toString()

Somethimes I get this one: com.merakianalytics.orianna.datapipeline.riotapi.exceptions.UnauthorizedException: A Riot API request to eun1.api.riotgames.com/lol/summoner/v4/summoners/by-name/(I deleted the name) returned "Unauthorized"

I mention that I have the network permission enabled and I'm doing this on a separate thread and I'm using the latest snapshop

popalexandru commented 4 years ago

The problem was because I set the API wrong