Shock95 Posted January 19, 2019 Share Posted January 19, 2019 I use the backpack.tf Auxillary API to send a heartbeat every five minutes to show a lightning bolt symbol for my trade bot, however whenever I do this it leads me to getting IP banned a few minutes later for no reason and this error message pops up from the Node.js bot: "Client network socket disconnected before secure TLS connection was established" Below is the code I am using for the heartbeat let lightning_timer = null; let request_params = { uri: "https://backpack.tf/api/aux/heartbeat/v1?token=" + keys.BACKPACK_TF_TOKEN, form: { token: keys.BACKPACK_TF_TOKEN, automatic: "all" }, json: true, method: "POST" }; request(request_params, function(error, response, body) { if(error) { console.log(error + error.message); } else { if(lightning_timer == null) { console.log("Successfully connected to Backpack.tf"); } lightning_timer = setInterval(lightning, 60000 * 5); } }); } Link to comment Share on other sites More sharing options...
D.Alex Posted January 19, 2019 Share Posted January 19, 2019 Maybe it was replaced by /1.0/agent/pulse ? Link to comment Share on other sites More sharing options...
Shock95 Posted January 20, 2019 Author Share Posted January 20, 2019 9 hours ago, Daddy Alex said: Maybe it was replaced by /1.0/agent/pulse ? I tried using that API with OAuth however it didn't do anything. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.