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

IllegalArgumentException: Can't get key for League without ID or queue and tier! #117

Closed Jay-ArBrouillard closed 4 years ago

Jay-ArBrouillard commented 4 years ago

Bug: Default code given doesn't work. I removed my api key in the image for obvious and my api key is confirmed to be working. Orianna.challengerLeagueInQueue(Queue.RANKED_SOLO).get(); //Throwing the error

image

robrua commented 4 years ago

Hey, what version of orianna are you using & how are you pulling it in as a dependency? If you're not already, can you try using the latest SNAPSHOT and tell me if you're still seeing the same problem? I can't reproduce it.

Jay-ArBrouillard commented 4 years ago

Thanks for the reply, but i've since move to a different api. But I used this in my gradle:

repositories {
  mavenCentral()
}

dependencies {
  implementation "com.merakianalytics.orianna:orianna:4.0.0-rc5"
}
robrua commented 4 years ago

Alright, thanks for the report though. For anyone following along, this should be working in the latest SNAPSHOT and we'll get a release out soon to make sure it's working in the stable version as well.