DoctorMcKay / node-globaloffensive

A Node.js module to connect to and interact with the CS2 game coordinator. Mostly used to get item data.
https://www.npmjs.com/package/globaloffensive
MIT License
262 stars 61 forks source link

Unhandled GC Message 9173 #71

Closed StanSmits closed 1 year ago

StanSmits commented 1 year ago

Whenever I'm running my code I'm getting the following error:

Got unhandled GC message 9173

Full stack trace:

Logged into Steam
Sending GC message ClientHello
Sending hello, setting timer for next attempt to 2000 ms
Sending GC message ClientHello
Sending hello, setting timer for next attempt to 4000 ms
Got handled GC message ClientWelcome
Unknown SO type 2 with 1 items
Unknown SO type 7 with 1 items
Unknown SO type 43 with 2 items
GC connection established
Connected to GC
Sending GC message ClientRequestPlayersProfile
Got unhandled GC message 9173

My Code is below, I have added both the callback in the call itself aswell as an event listener.

csgo.on("connectedToGC", () => {
  if (!csgo.haveGCSession) {
    throw new Error("Error Connecting with GC, Please restart the app");
  }
  console.log("Connected to GC");

  csgo.requestPlayersProfile("76561197963740787", (profile) => {
    console.log(profile);
  });
});

csgo.on("disconnectedFromGC", (reason) => {
  console.log("Disconnected from GC with reason: " + reason);
});

csgo.on("playersProfile", (profile) => {
  console.log(profile);
});
DoctorMcKay commented 1 year ago

That's not an error, it's just debugging output. You're seeing it because you're printing the debug event.