node-csgo icon indicating copy to clipboard operation
node-csgo copied to clipboard

Sometimes PlayerProfileRequest return ranking: null

Open Roguyt opened this issue 9 years ago • 13 comments

Sometimes, i don't know why it returns this

{ request_id: null,
  account_profiles:
   [ { account_id: 152304352,
       ongoingmatch: null,
       global_stats: null,
       penalty_seconds: null,
       penalty_reason: null,
       vac_banned: null,
       ranking: null,
       commendation: [Object],
       medals: [Object],
       my_current_event: null,
       my_current_event_teams: [],
       my_current_team: null,
       my_current_event_stages: [],
       survey_vote: null,
       activity: null,
       player_level: 20,
       player_cur_xp: 327680966,
       player_xp_bonus_flags: null } ] }

Any idea why i can't get the rank ? Ty


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Roguyt avatar Jan 02 '16 15:01 Roguyt

Make sure they have CS:GO running.

shaunidiot avatar Jan 02 '16 15:01 shaunidiot

Just checked again and still not work

Roguyt avatar Jan 02 '16 16:01 Roguyt

I still don't know what could be causing this and I haven't done much research into this. It is recurring though as it's also been talked about in #25 and #16

joshuaferrara avatar Jan 07 '16 06:01 joshuaferrara

So in fact you can't fix because you don't know what's the problem, np Thx Valve and your shitty api ^^ Thx you for your amazing job Josh !

Roguyt avatar Jan 07 '16 16:01 Roguyt

ongoingmatch is null. Doesn't that mean they are not in a match? Isn't a requirement of the api that they be in a match?

taylorfinnell avatar Jan 07 '16 16:01 taylorfinnell

It's normal, because i make a request to the player profile, the requirement of the api is that they have csgo opened.

Roguyt avatar Jan 07 '16 16:01 Roguyt

@taylorfinnell Ranking and vac_banned should be available though.

@roguyt As long as they are friends with the bot and online in game it should work. I'll take a look at some of the other NodeJS based valve APIs (node-dota2, node-tf2) over the weekend and see if they've run into similar problems.

joshuaferrara avatar Jan 07 '16 16:01 joshuaferrara

@joshuaferrara Okey thx bro ;)

Roguyt avatar Jan 07 '16 17:01 Roguyt

@Roguyt #31 might provide some insight to your situation.

joshuaferrara avatar Feb 24 '16 16:02 joshuaferrara

I didnt understand... Is it possible to pick? Because its really important to us if its possible.

Can you guys help me, please?

Raphash0w avatar May 24 '16 01:05 Raphash0w

This can mean that you don't have the player as a friend or the player has no ranked history.

Tjird avatar Jan 07 '20 16:01 Tjird

In fact if ranking is null, it just's because that player is not ranked yet (under ten wins)
else if that player has a rank, even an expired one, ranking property will be filled

fredodiable avatar Oct 17 '20 20:10 fredodiable

I think Valve changed its API so you can only get current rank by players who are in your Steam friendslist.

L4rsS avatar Oct 07 '22 11:10 L4rsS