Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sometimes PlayerProfileRequest return ranking: null #28

Open
Roguyt opened this issue Jan 2, 2016 · 13 comments
Open

Sometimes PlayerProfileRequest return ranking: null #28

Roguyt opened this issue Jan 2, 2016 · 13 comments
Labels

Comments

@Roguyt
Copy link

Roguyt commented Jan 2, 2016

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.

@shaunidiot
Copy link

Make sure they have CS:GO running.

@Roguyt
Copy link
Author

Roguyt commented Jan 2, 2016

Just checked again and still not work

@joshuaferrara
Copy link
Owner

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

@Roguyt
Copy link
Author

Roguyt commented Jan 7, 2016

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 !

@taylorfinnell
Copy link

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?

@Roguyt
Copy link
Author

Roguyt commented Jan 7, 2016

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

@joshuaferrara
Copy link
Owner

@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.

@Roguyt
Copy link
Author

Roguyt commented Jan 7, 2016

@joshuaferrara Okey thx bro ;)

@joshuaferrara
Copy link
Owner

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

@Raphash0w
Copy link

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

Can you guys help me, please?

@Tjird
Copy link

Tjird commented Jan 7, 2020

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

@fredodiable
Copy link

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

@L4rsS
Copy link

L4rsS commented Oct 7, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants