stelar7/R4J

Cant get tests to run/ Forbidden code

Opened this issue · 2 comments

Hi,
i added the version 2.5.2 with maven to my Project.
I input my Api Key in the Creds File.

Then i tried running the UseageTest.java.

Only thing i changed is the Creds File to input my own Key.

Test is failing here

 RiotAccount  account  = api.getAccountAPI().getAccountByTag(LeagueShard.EUW1.toRegionShard(), "stelar7", "STL7");

I get the {"status":{"message":"Forbidden","status_code":403}} Message.

I tried some of the other Examples, they have the same result.
I tried resetting my ApiKey.

Help would be greatly appreciated.

Thanks in advance,
Max

The getAccountByTag method uses the Valorant key from the Creds file. (Due to how the API worked before 🤷 )

If you only have a single key, try setting all the entries to the same key, that should solve issues relating to that method

Wow thanks,
that did it.
Although i get null for the Summoners name.
And can the Api also read Custom games?

Thanks alot