Some API get 404 status
Closed this issue · 3 comments
Cansiny0320 commented
such as webClient.PreGame.getPlayer
I have set the config according to the information on discord
const webClient = new WebClient({
client: {
version: 'release-05.09-shipping-10-789344',
platform: {
platformType: 'PC',
platformOS: 'Windows',
platformOSVersion: '10.0.19042.1.256.64bit',
platformChipset: 'Unknown',
},
},
...config,
})
KTNG-3 commented
check the region
console.log(WebClient.config)
it will return all configs and "region" must be set to be yours.
Cansiny0320 commented
i think it is right
{
client: {
version: 'release-05.09-shipping-10-789344',
platform: {
platformType: 'PC',
platformOS: 'Windows',
platformOSVersion: '10.0.19042.1.256.64bit',
platformChipset: 'Unknown'
}
},
axiosConfig: {
headers: {
'User-Agent': 'RiotClient/60.0.6.4770705.4749685 rso-auth (Windows;10;;Professional, x64)',
'X-Riot-ClientVersion': 'release-06.00-shipping-7-812534',
'X-Riot-ClientPlatform': 'eyJwbGF0Zm9ybVR5cGUiOiJQQyIsInBsYXRmb3JtT1MiOiJXaW5kb3dzIiwicGxhdGZvcm1PU1ZlcnNpb24iOiIxMC4wLjE5MDQyLjEuMjU2LjY0Yml0IiwicGxhdGZvcm1DaGlwc2V0IjoiVW5rbm93biJ9'
}
},
throwOnError: true,
region: 'ap'
}
KTNG-3 commented
maybe you didn't in "Pregame (select character phase)"