Want to download client data

Hello. I’d like to download the number of users of my teamspeak server on the website, but after a few downloads everything stops working. Is there any limit on logging in to query over time or something?

this is my code (express in node.js using api):

const tsClient = new TeamSpeak(data.ts.ip, data.ts.port);

tsClient.send('login', {
    client_login_name: data.ts.user,
    client_login_password: data.ts.password
}, function(err, response, request) {
    tsClient.send('use', {
        sid: 1
    }, function(err, response, request) {

        tsClient.send('clientlist', function(err, response, request) {
            const data = {
                online: response.data.length
            }
            res.writeHead(200, {'Content-Type': 'application/json'});
            res.write(JSON.stringify(data));
            res.end();
        });
    });
});

Thank you!

Anyway…
First option doesn’t work (I try config and parameter - nothing works).
Soon i try your second advice.

1 Like

I create ts3server.ini and put query_skipbruteforcecheck=1 into this and nothing works. Launching by ts3server_startscript.sh

I try it yet ./ts3server_minimal_runscript.sh query_skipbruteforcecheck=1 but doesn’t work.
And this file is a complicated thing, I don’t know what is what :confused: voice_ip machine_id etc

machine_id=
default_voice_port=9987
voice_ip=
licensepath=
filetransfer_port=30033
filetransfer_ip=
query_port=10011
query_ip=0.0.0.0, ::
query_ip_whitelist=query_ip_whitelist.txt
query_ip_blacklist=query_ip_blacklist.txt
dbplugin=ts3db_sqlite3
dbpluginparameter=
dbsqlpath=sql/
dbsqlcreatepath=create_sqlite/
dbconnections=10
logpath=logs
logquerycommands=0
dbclientkeepdays=30
logappend=0
query_skipbruteforcecheck=1
query_buffer_mb=20
http_proxy=
license_accepted=0
serverquerydocs_path=serverquerydocs/
query_ssh_ip=0.0.0.0, ::
query_ssh_port=10022
query_protocols=raw,ssh
query_ssh_rsa_host_key=ssh_host_rsa_key
query_timeout=300

I launch it by this

./ts3server_minimal_runscript.sh inifile=ts3server.ini

and the page still stops downloading data from teamspeak after 5 refreshs for some time (probably 5 minutes).

Today I went to my website and everything works fine (what a suprise!). (Maybe except for one funny thing like no query disconnection, so I had query armies attached to teamspeak xD, but already fixed)
Thank you for help!

Problem Solved

2 Likes