node-steam-user
node-steam-user copied to clipboard
TypeError: Cannot read property '_handlers' of undefined
Describe the bug
Been using this module for months now and it has been fine. But the past week my runs have sometimes run into a dump of
TypeError: Cannot read property '_handlers' of undefined
at HandlerManager.checkMsgForLegacyHandlers (node_modules/steam-user/components/classes/HandlerManager.js:43:34)
at HandlerManager.emit (node_modules/steam-user/components/classes/HandlerManager.js:29:8)
at SteamUser.Object.<anonymous>.SteamUser._handleMessage (node_modules/steam-user/components/messages.js:612:24)
at SteamUser.Object.<anonymous>.SteamUser._handleNetMessage (node_modules/steam-user/components/messages.js:533:7)
at TCPConnection._readMessage (node_modules/steam-user/components/connection_protocols/tcp.js:194:13)
All errors are the same
Waiting a few minutes then running again sometimes fixes it. But i cannot tell if it is the way i am using the module (i am using the storage engine to store files in MongoDB GridFS buckets, in this scenario i am also logging on / off a lot), whether steam goes down or if there is actually an issue with the module.
Versions
^4.19.12
I am using the module here https://github.com/Kards-Stats/kards-tools/blob/main/kards/session.ts
The Error is being thrown when i run the tests (i am running live data in the tests, this is what i mean by im logging in / out a lot) https://github.com/Kards-Stats/kards-tools/tree/main/tests