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

getSteamUser does not work with foreign SteamID's #90

Closed
andrich48 opened this issue Mar 8, 2016 · 3 comments
Closed

getSteamUser does not work with foreign SteamID's #90

andrich48 opened this issue Mar 8, 2016 · 3 comments
Labels

Comments

@andrich48
Copy link

node-steamcommunity, node-steam-user, node-steam-tradeoffer-manager, they all use 'steamid' package for internal procedures. But when I try to get 'SteamID' object from node-steam-user package and use getSteamUser method from node-steamcommunity package, it crashes with error.

var community = new SteamCommunity();
var client = new SteamUser();
(...)
client.on('loggedOn', function (details) {
    community.getSteamUser(client.steamID,function(err,user) { true; });
});

error:

/node_modules/steamcommunity/classes/CSteamUser.js:7
                throw new Error("id parameter should be a user URL string or a SteamID object");
Error: id parameter should be a user URL string or a SteamID object

What am I doing wrong? How to make it work?
My aim is to use node-steam-tradeoffer-manager, extract SteamID from incoming offers, and then use node-steamcommunity to get various information about users.

@DoctorMcKay DoctorMcKay added the bug label Mar 8, 2016
@DoctorMcKay
Copy link
Owner

You aren't doing anything wrong. This is a bug in the package. I'll see about fixing it tonight.

@andrich48
Copy link
Author

Thanks a lot for fast reply and fixing! Now everything works fine.

@DoctorMcKay
Copy link
Owner

😃

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

2 participants