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

TypeError: Cannot read property '_handlers' of undefined #372

Open
KlutzyBubbles opened this issue Aug 15, 2021 · 0 comments
Open

TypeError: Cannot read property '_handlers' of undefined #372

KlutzyBubbles opened this issue Aug 15, 2021 · 0 comments
Labels

Comments

@KlutzyBubbles
Copy link

KlutzyBubbles commented Aug 15, 2021

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

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

1 participant