Issue: When using the Client() constructor without specifying a locale, the underlying request to the Riot API results in a 400 error. It seems the Riot API expects a locale parameter, and not having one causes this error.
Steps to Reproduce:
Initialize the client without specifying a locale:
client = valorant.Client(YOUR_API_KEY)
Observe the 400 error.
Expected Behavior: The library should either provide a default locale (if applicable) or raise a more descriptive error guiding the user to provide the necessary locale parameter.
Temporary Workaround: Specifying locale=None when initializing the client appears to prevent this error:
Thanks for opening an issue. This might be a more recent change to their API endpoints because this has never raised any errors before. I'll look into this later tonight and get back to you.
Issue: When using the
Client()
constructor without specifying alocale
, the underlying request to the Riot API results in a 400 error. It seems the Riot API expects alocale
parameter, and not having one causes this error.Steps to Reproduce:
locale
:Expected Behavior: The library should either provide a default
locale
(if applicable) or raise a more descriptive error guiding the user to provide the necessarylocale
parameter.Temporary Workaround: Specifying
locale=None
when initializing the client appears to prevent this error: