Jump to content
McKay Development

Cannot read property 'type' of null


trzyrazyzero

Recommended Posts

Hi, sometimes this happens:

Offer #1248497400 changed: CreatedNeedsConfirmation -> Active
/home/nodebots/node_modules/steam-user/components/web.js:9
  if (this.steamID.type === SteamID.Type.ANON_USER) {
                  ^

TypeError: Cannot read property 'type' of null
    at SteamUser.webLogOn (/home/nodebots/node_modules/steam-user/components/web.js:9:18)
    at tryOnTimeout (timers.js:224:11)
    at Timer.listOnTimeout (timers.js:198:5)

Whats wrong?

Link to comment
Share on other sites

It depends on why you were disconnected. If the error event was emitted then it was an unrecoverable disconnection and you need to reconnect yourself. If the disconnected event was emitted instead, then steam-user will automatically reconnect.

 

Basically, you just shouldn't webLogOn if you aren't currently connected.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...