joshuaferrara / node-csgo

A node-steam plugin for Counter-Strike: Global Offensive.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sometimes PlayerProfileRequest return ranking: null

Roguyt opened this issue · 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.

commented

Make sure they have CS:GO running.

Just checked again and still not work

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

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 !

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?

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

@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 Okey thx bro ;)

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

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

Can you guys help me, please?

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

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

commented

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