liamcottle / valorant.js

This is an unofficial NodeJS library for interacting with the VALORANT API used in game.
105 stars 19 forks source link

403 Forbidden error while trying to authenticate #28

Closed atitkh closed 1 year ago

atitkh commented 1 year ago

While trying to use valorantApi.authorize(username, password), there is an error with code 403 Forbidden.

SpatzlHD commented 1 year ago

That is probably coused by riot updating there Cloudfair settings again... There are a few new workarounds that I am trying to fix the problem. @liamcottle if you whant you can assign this issue to me

SpatzlHD commented 1 year ago

until the patch is published you can manuel set the new client_version and user_agent by using

valorantApi.user_agent = "RiotClient/58.0.0.4640299.4552318 %s (Windows;10;;Professional, x64)"
valorantApi.client_version = "release-05.06-shipping-6-765767"

before calling the valorantApi.authorize methode. This should fix the error

atitkh commented 1 year ago

Working after changing the versions, thanks!