Jump to content
McKay Development

response.body.match is not a function


turtleslol

Recommended Posts

Hello, I'm getting this error every now and then after calling postUserComment() and inviteUserToGroup().

Since this happens in rare occasions I wasn't able to check the value of response.body, but i think this happens when i lose the steamcommunity session?

.../node_modules/steamcommunity/components/http.js:101
	if (response.statusCode == 403 && response.body && response.body.match(/<div id="parental_notice_instructions">Enter your PIN below to exit Family View.<\/div>/)) {

TypeError: response.body.match is not a function
    at SteamCommunity._checkHttpError (.../node_modules/steamcommunity/components/http.js:101:67)
    at Request._callback (.../node_modules/steamcommunity/components/http.js:50:61)
    at Request.self.callback (.../node_modules/request/request.js:186:22)
    at emitTwo (events.js:106:13)
    at Request.emit (events.js:192:7)
    at Request.<anonymous> (.../node_modules/request/request.js:1081:10)
    at emitOne (events.js:96:13)
    at Request.emit (events.js:189:7)
    at IncomingMessage.<anonymous> (.../node_modules/request/request.js:1001:12)
    at Object.onceWrapper (events.js:291:19)

Can I handle this somehow? Because it's crashing my app and i don't know how to handle this other than restarting everything with forever.

Thanks

Edited by turtleslol
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...