csfloat / inspect

Source Code that Powers the CSFloat Inspect Link API
https://csgofloat.com
MIT License
392 stars 118 forks source link

TypeError: Cannot read properties of undefined (reading 'Tokens') #221

Open Kris9711 opened 1 month ago

Kris9711 commented 1 month ago

Hi, today when I tried to run bots I got this error message:

pi@raspberrypi:~ $ sudo nodejs /home/pi/inspect/index.js /home/pi/inspect/lib/game_data.js:75 this.csgo_english = this.objectKeysToLowerCase(vdf.parse(f)['lang']['Tokens']); ^

TypeError: Cannot read properties of undefined (reading 'Tokens') at GameData.loadFiles (/home/pi/inspect/lib/game_data.js:75:80) at new GameData (/home/pi/inspect/lib/game_data.js:53:18) at Object. (/home/pi/inspect/index.js:18:16) at Module._compile (node:internal/modules/cjs/loader:1504:14) at Module._extensions..js (node:internal/modules/cjs/loader:1588:10) at Module.load (node:internal/modules/cjs/loader:1282:32) at Module._load (node:internal/modules/cjs/loader:1098:12) at TracingChannel.traceSync (node:diagnostics_channel:315:14) at wrapModuleLoad (node:internal/modules/cjs/loader:215:24) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:158:5)

Node.js v22.5.1

(the '^' symbol is exactly after ['lang'], on the '[')

Ealier today everything was working just fine so I'm wondering if it is known bug or I messed something up?

Cheers!