Jump to content
McKay Development

Process exception handle failed


Recommended Posts

Hello McKay,

First of all, thanks for your hard work. I'm trying to implement  tradeoffer-manager to my bot project but sometimes my bot process just halted, it threw error like this:

 

 

2016-10-26 17:19:13 - error: [x] [tradeoffer-manager] { Error: HTTP error 429
    at SteamCommunity._checkHttpError (/xbot/node_modules/steam-tradeoffer-manager/node_modules/steamcommunity/components/http.js:108:9)
    at Request._callback (/xbot/node_modules/steam-tradeoffer-manager/node_modules/steamcommunity/components/http.js:50:61)
    at Request.self.callback (/xbot/node_modules/request/request.js:187:22)
    at emitTwo (events.js:106:13)
    at Request.emit (events.js:191:7)
    at Request.<anonymous> (/xbot/node_modules/request/request.js:1048:10)
    at emitOne (events.js:96:13)
    at Request.emit (events.js:188:7)
    at Gunzip.<anonymous> (/xbot/node_modules/request/request.js:969:12)
    at emitNone (events.js:91:20)
    at Gunzip.emit (events.js:185:7) code: 429 }
 

My main index.js got this to handle these kind of excetion like this:

 

process.on('uncaughtException', function(err) {
    // handle the error safely
    console.log(err)
});

 

 

Please help. Thanks.

 

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...