pseudonym117 / Riot-Watcher

Simple Python wrapper for the Riot Games API for League of Legends
MIT License
531 stars 150 forks source link

Error on matchlist_by_account #206

Closed ScottCarrara closed 2 years ago

ScottCarrara commented 2 years ago

Hello! I was following this example to learn how to use this Library: https://towardsdatascience.com/how-to-use-riot-api-with-python-b93be82dbbd6

But I keep getting this error image

I've tried to set to use ApiV4 as showed in the Readme, but I keep getting the same error. image

Did anyone get this error too? How do I solve it?

Thanks!

irinelul commented 2 years ago

Hi

You can only call the matchlist from puuid https://i.imgur.com/D9Qtjio.png

I'm using it as such : "matchhistory=lol_watcher.match.matchlist_by_puuid(my_region, my_puuid,count=99)" with my_puuid being a string containing my puuid. good luck