Jump to content
McKay Development

TypeError: Cannot read property 'type' of null when relog()


Recommended Posts

Code :

community.on("sessionExpired", function(err) {
	if(client.steamID == null){
		client.relog((err) => {
			if (err) {
				console.log(error + err.message)
	} else {
		client.webLogOn((err) => {
			if (err) {
			console.log(error + err.message)

Error :

        if (this.steamID.type == SteamID.Type.INDIVIDUAL && (!this._logOnDetails || !this._logOnDetails.should_remember_password || !this._logOnDetails.login_key)) {

TypeError: Cannot read property 'type' of null
    at SteamUser.relog (C:\Users\JingYong-PC\Desktop\CSGO-TF2bot\node_modules\steam-user\components\logon.js:254:18)
    at SteamCommunity.<anonymous> (C:\Users\JingYong-PC\Desktop\CSGO-TF2bot\start.js:130:10)
    at emitOne (events.js:96:13)
    at SteamCommunity.emit (events.js:188:7)
    at SteamCommunity._notifySessionExpired (C:\Users\JingYong-PC\Desktop\CSGO-TF2bot\node_modules\steamcommunity\components\http.js:85:7)
    at C:\Users\JingYong-PC\Desktop\CSGO-TF2bot\node_modules\steamcommunity\components\confirmations.js:21:10
    at C:\Users\JingYong-PC\Desktop\CSGO-TF2bot\node_modules\steamcommunity\components\confirmations.js:272:4
    at SteamCommunity._checkHttpError (C:\Users\JingYong-PC\Desktop\CSGO-TF2bot\node_modules\steamcommunity\components\http.js:90:3)
    at Request._callback (C:\Users\JingYong-PC\Desktop\CSGO-TF2bot\node_modules\steamcommunity\components\http.js:50:61)
    at self.callback (C:\Users\JingYong-PC\Desktop\CSGO-TF2bot\node_modules\request\request.js:188:22)
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.

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.

  • Create New...