Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

inspectItem doesn't return anything

See original GitHub issue

Hi, I have the following code, but the csgo.inspectItem doesn’t respond at all. I would really appreciate it if you could help me out:

`import { NestFactory } from ‘@nestjs/core’; import { AppModule } from ‘./app.module’;

const SteamUser = require(‘steam-user’); const GlobalOffensive = require(‘globaloffensive’);

async function bootstrap() { const app = await NestFactory.create(AppModule, { cors: true });

await app.listen(3000);

let user = new SteamUser(); let csgo = new GlobalOffensive(user);

user.logOn({ accountName: ‘myusername’, password: ‘mypassword’, });

user.on(‘loggedOn’, function(details) {


csgo.on('connectedToGC', () => {

  if (csgo.haveGCSession) {
    console.log('GC is true');

    // ****** up to here is fine and works ok, but the call to inspectItem returns nothing ***********

      item => {



user.on(‘emailInfo’, function(address, validated) {

// This works fine

  'Our email address is ' +
    address +
    " and it's " +
    (validated ? 'validated' : 'not validated'),


user.on(‘wallet’, function(hasWallet, currency, balance) {

// This works fine

  'Our wallet balance is ' + SteamUser.formatCurrency(balance, currency),

}); } bootstrap(); `

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

DoctorMcKaycommented, Sep 17, 2020

That’s not a valid link. There should not be % around the SteamID and assetID values.

No, you can’t.

DoctorMcKaycommented, Sep 12, 2020

SteamIDs and inspect keys (the “D” number) are too big to be represented as numbers in JavaScript. The maximum integer that can be represented with guaranteed precision is 2^53.

Wrap those numbers in quotes to turn them into strings.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to inspect the function returns in Python? - Stack Overflow
What I am struggling is to find a way to inspect the returned dictionary of the called function (here, get_data_points ) before calling...
Read more >
inspect — Inspect live objects — Python 3.11.1 documentation
Return a list of source lines and starting line number for an object. The argument may be a module, class, method, function, traceback,...
Read more >
Condition of returned items policy - eBay
If a buyer returns an item, it should be returned in the same condition in which it was received, and it should include...
Read more >
Unreal Engine 4 Tutorial - Item Inspection Part 1 - Look At
In this series we go through how to add the functionality to inspect items that you are holding, revealing details about said item....
Read more >
Here's what really happens to the items you return online - CNN
Once your return arrives at its destination, an employee needs to open the air fryer, inspect it, maybe even plug it in to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found