Jump to content

Backpack.tf Auxillary API help


Recommended Posts

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


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...